Static Context Question

Discussion in 'General' started by robfrew, Mar 6, 2008.

  1. robfrew

    robfrew Well-Known Member

    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: points to /usr/share/www 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: Mar 6, 2008
  2. robfrew

    robfrew Well-Known Member

    Nevermind, it was a coding error on the part of the developer.

Share This Page