Re: MySQL password protection?
| From: | Steve Cayford | Date: | Wed, 06 Nov 2002 22:34:53 +0000 |
| Subject: | Re: MySQL password protection? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23055@lists.php.net to get a copy of this message | ||
You could put it anywhere. Stick it in a text file somewhere, fopen() and read the file for the password. Or keep it in a php script outside of the web root if that's the issue, then just include() it when you need to.
Of course any file you put it in will have to be readable by whatever user the webserver is running as.
-Steve
On Wednesday, November 6, 2002, at 04:16 PM, 1LT John W. Holmes wrote:
I was wondering if it is possible to protect my password to theMySQL-serverfrom being in a PHP-script. Now I can't do that, so everybody who gets to see my php-sourcecode also can see my (not protected/not encrypted) password. How can I change this?You can't, unless you want to put it in php.ini or a my.conf file... ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php