You are here: Re: PHP and MySQL Connection « All PHP « IT news, forums, messages
Re: PHP and MySQL Connection

Posted by David Quinton on 08/18/06 08:40

On Fri, 18 Aug 2006 05:03:31 GMT, nobody@thisaddress.net wrote:

>$connect = mysql_connect("localhost","username","password");
>
>Is the above line of code a security risk to hackers and spammers? I
>know PHP is executed on the server side, but I feel having a file
>sitting on the server(http) with this sensitive info is vulnerable.

Personally I put passwords etc. in an Included file that is in a
directory that is not web-accessible. But, depending on your hosting
set up, this may not always be possible.

However, I reckon that having passwords within the php file (as in
your example) is very common practice.
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>

 

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

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