How can I prevent a PHP script from opening up any file or directory on the system that it has "file access to"

for example I have many sites hosted off 1 box, they all must be readable by apache, thus any 1 of the sites can read from the other.


I want to do something like this
<Virtual>
VirtualPHProot = "/site34/www"
</Virtual>