Static Context Question

robfrew

Well-Known Member
#1
I have a directory outside of the VHROOT directory that I need to access that contains php files, etc... I setup a STATIC CONTEXT to point to that directory and it works except if any files within that external directory need to access files within the same directory, it cannot find them.

Example:

http://server.com/external/ points to /usr/share/www

http://server.com/external/index.php points to /usr/share/www/index.php

index.php code contains: require_once 'common.php';

when index.php is accessed, it finds common.php and includes it but common.php cannot find constants.php:

Warning: require_once(constants.php) [function.require-once]: failed to open stream: No such file or directory in /usr/share/www/common.php on line 30.

How do I set it up correctly so it finds constants.php without having to change the code?
 
Last edited:
Top