How to protect MySQL password
| From: | Andy | Date: | Tue, 23 Oct 2001 18:13:42 +0000 |
| Subject: | How to protect MySQL password | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71971@lists.php.net to get a copy of this message | ||
Hi friends
In a PHP application using MySQL i have to connect the database using
$iDBhandle = mysql_connect( $sDBhost, $sDBuser, $sDBpsw );
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" ).
Who can help?
Andy.