Re: MySQL password protection?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 the
> MySQL-server
>> from 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
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux