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

Re: [cobalt-users] Where to put PHP database connection info fileon RaQ3?



"Marco Baurdoux" <linux@xxxxxxxxxxxxx> wrote:
> put the file outside of the web directory and create a file with only read
> privileges for the owner of the PHP script !!

If you're implying that will prevent others from reading the file, you're
correct.  However, I'm afraid that your solution will only work if PHP is
being run as a CGI instead of as an Apache module.  When run as an Apache
module, the file needs to be readable by user httpd (user Apache runs as),
otherwise PHP can't access the file.  <frown>

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/