Re: How to protect MySQL password
| From: | Kurt Lieber | Date: | Tue, 23 Oct 2001 18:40:33 +0000 |
| Subject: | Re: How to protect MySQL password | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71978@lists.php.net to get a copy of this message | ||
On Tuesday 23 October 2001 11:20, Matt Williams wrote:
> 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.
Either solution still allows anyone with shell access to the machine to read
your password. Not an ideal solution for shared hosting environments, but if
you're running your own server, it's a great solution.