Stop php code from an include() from reading and writing

The title sums it up.

I want to be able to include a file from a subdirectory

i.e. include(“dir1/mygreatpage.php”);

However I don’t want this included page to have permission to read or write. But I also need to keep allowing the script that calls it to read and write.

I tried some chmod stuff and failed. Maybe chmod or something similar would be another way to do it.
Cheers

Sponsor our Newsletter | Privacy Policy | Terms of Service