stan
06-01-1999, 07:41 PM
I have some scripts that start with a require('somelibrary.php').
In order to make it invariant to the location in the directory tree I tried to use an absolute path for it, e.g. require('/big/dom/xdomain/www/lib/somelibrary.php')
That didn't work.
Found out that require('/xdomain/www/lib/somelibrary.php') does work. I guess that Apache does a chroot to /bin/dom/?
Is this last require statement a robust way to do it? Or does it rely to much on the current system configuration?
Stan
In order to make it invariant to the location in the directory tree I tried to use an absolute path for it, e.g. require('/big/dom/xdomain/www/lib/somelibrary.php')
That didn't work.
Found out that require('/xdomain/www/lib/somelibrary.php') does work. I guess that Apache does a chroot to /bin/dom/?
Is this last require statement a robust way to do it? Or does it rely to much on the current system configuration?
Stan