open_basedir hack for PHP help

OK, basic situation:
We run hosting servers using mod_vhost_alias to access data such as:
www.example.com -> /nfs/example.com/www/

We want people kinda rooted to their /nfs/example.com/ for PHP. My boss wants to do this by modding the open_basedir checking routines in fopen_wrappers.c to check is we are in the correct virtual aliased path.
Any idea how I can either pass the path of the executing script, or something similar so I can add the check in this code?

Regards
Andrew

 

 

 

 

Top