Re: How to protect MySQL password

From: Date: Tue, 23 Oct 2001 18:39:01 +0000
Subject: Re: How to protect MySQL password
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71976@lists.php.net to get a copy of this message
On Tuesday 23 October 2001 11:13, Andy wrote: > Problem is, that I cannot see any solution to protect the value of $sDBpsw. > Of course I wont set the value of $sDBpsw in the same PHP script. I do > that including a file pa/pa.php (protected area) but this file also has to > have read access to all users and could be read with fopen( "URL", "r" ). You need to use a program such as php-cgiwrap to "wrap" the script so it can be called using your user credentials. Then, you can chmod the file to 700 and it will be protected. Downside; you have to use the cgi version of PHP, rather than the apache module. --kurt

« previous php.general (#71976) next »