Protecting database passwords other than using heirarchy

Associate
Joined
28 Sep 2004
Posts
1,151
Location
London
I'm used to basic password protection on my own webserver by including a PHP file (with usernames and passwords stored as vars) that's in a directory above /var/www, inaccessible to web users.

However with one host I've got, my www directory is my FTP root and I can't place anything above it.

How would I go about protecting password files in this manner without such access? htaccess? chmod?

Cheers
 
Back
Top Bottom