Page 1 of 1

Hide passwords

Posted: Mon Nov 11, 2002 1:45 pm
by Heavy
How can php include files become completely inaccessable to the HTTP-client?
Is there a way for PHP to include files that reside in a safer part of the system, i.e. where the web-server has less permissions and php has more?
I use Linux, Apache and PHP 4.2.3

Posted: Mon Nov 11, 2002 3:45 pm
by Daedalus
If you put the data you want protected in a file outside the document root of your site, you can still include it from php but it will not be accessable from a Web Client.