You are here: Re: How to prevent "view sourse" of php database file « PHP SQL « IT news, forums, messages
Re: How to prevent "view sourse" of php database file

Posted by Alan Cole on 03/08/06 18:10

In article <be4df$440effca$89781b7f$12835@news1.tudelft.nl>,
"Mark@home" <donnersm@home.nl> wrote:

> Can anyone tell me how i can prevent that users can see my connection string
> to mysql database?
>
> Using my browser i could easely use the function: view source.....showing
> the html/php code.
>
> IF the file includes the connection string than anyone could see my database
> name and password.....
>
> How can i prevent this??
>
> Please help.
> Mark

If the server is set up properly no php code will be sent to the
browser... php is a server side scripting language that is processed on
the server and should never get sent to the browser when a page is
requested.

Al.

--
Alan Cole. E-mail: justal at lineone dot net
http://www.forces-of-nature.co.uk [Coastal Sports]
http://www.pixelwave.co.uk [Website Design, hosting and promotion]

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация