RE: [PHP] location of scripts with DB passwords
| From: | John W. Holmes | Date: | Thu, 01 May 2003 21:36:02 +0000 |
| Subject: | RE: [PHP] location of scripts with DB passwords | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146015@lists.php.net to get a copy of this message | ||
> I've got a hosting provider who is switching me to an Ensim run site.
>
> The previous one was monster controls.
>
> I have another site on another host that also uses Ensim.
>
> The new one going to Ensim can't seem to give me the true harddrive
> location of my root account so that I can put the DB passwords and
classes
> files, etc, outside of the document root.
I worked on an ensim server once and this was a pain. The path shown
when you were logged in through SSH was only a part of the path. The
upper directories were masked somehow. The only way I was able to find
out the "real" path on the machine was to make a PHP script with an
error in it. The error message would give you the actual path to the
file. Hope that helps.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/