[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Where to put PHP database connection info fileon RaQ3?
- Subject: Re: [cobalt-users] Where to put PHP database connection info fileon RaQ3?
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Thu Nov 1 06:05:05 2001
- Organization: Befriend Internet Services LLC
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"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/