Possible Duplicate:
How to hinder PHP files to Global Access
For a project I’m working on, I require(“xxxx.php”); to include certain parts of my website into my site.
For example, I have header.php and my site just uses a simple require(“header.php”) to display to the world.
Now, how do I make it so the page include header.php’s content, but make it so the user can’t access it via
Put the file somewhere outside the DocumentRoot of the webserver.