Re: Database Connection Properties
| From: | patrick gibson | Date: | Mon, 07 Jan 2002 19:34:40 +0000 |
| Subject: | Re: Database Connection Properties | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15511@lists.php.net to get a copy of this message | ||
> Store the connection strings in an include file preferably outside the
> wed root. You can include files with a fully resolved path, or using the
> php include_path variable if you have access to the configuration.
> Alternately, if you don't have access to directories outside the
> webroot, put the
That would be slightly more secure, but still not foolproof. Where-ever the
file is, it has to ultimately be accessible by the webserver. Any user on
the system will either have access to that folder through the shell or
through the webserver via their own script. I guess there's not really any
great way of protecting database connection information on a shared server?
Patrick
---| patrick gibson |---------------+
email: email @ patrickg.com
url: http://patrickgibson.com/
------------------------------------+