RE: [PHP] How to protect MySQL password

From: Date: Tue, 23 Oct 2001 18:20:18 +0000
Subject: RE: [PHP] How to protect MySQL password
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71974@lists.php.net to get a copy of this message
Move it outside the document root or put a .htaccess file inside the dir to deny access. This will still allow system access but will prevent other fopen. M: > 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" ). >

« previous php.general (#71974) next »