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.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to