You are here: Best practice regarding MySQL username/pw in script file?? « All PHP « IT news, forums, messages
Best practice regarding MySQL username/pw in script file??

Posted by cewyattjr on 07/15/06 20:08

So I'm a relative noob with PHP/MySQL. Here's my question -- seems
pretty questionable from a security standpoint to have the MySQL
connection usernames/pw's embeded in PHP scripts all over a site. Is
there a better practice? Would something like this in every page be
better:

include ("../passwordprotected/SinglefilewithPHPlogininfo.php"); ?>
Database login info is still sitting in that file in clear text, but
seems better than multiple clear-text copies all over a site. Are
there better methods?

Thanks,

Chuck

 

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

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