Regarding this well-known quote, often attributed to Maciej Milczarek's
famous "Thu, 18 Dec 2003 01:15:12 +0100" speech:
ree wrote:
Whats the best way to store passwords for MySQL databases on a webserver?
Should you store it in the php file ? or another text file ?
should you search for the value in the file or just include it ?
I think You should store it in the php file, then just include it.
maciek
Just make sure it's in a file that's absoutely, positively going to get
parsed by PHP (and not output as text or HTML). Use "filename.inc.php", or
better yet, just "filename.php", *not* "filename.inc" for the include file.
--
-- Rudy Fleminger
--
sp@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
--
http://www.pixelsaredead.com