Hide passwords

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Hide passwords

Post 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
Daedalus
Forum Newbie
Posts: 3
Joined: Mon Nov 11, 2002 3:45 pm

Post 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.
Post Reply