On Thursday 03 January 2002 13:36, Tim Ward wrote:
> Include will act relative to the path of the script not the
> included file that the include is in.
>
> If you have an include in a file which is itself included and which
> isn't always called from files in the same directory you need to
> make the include path absolute rather than relative.
This can be solved partly with include_path setting in php.in or in 
apache's config files (even in .htaccess). You can just set 
include_path to your project's (or application's) root directory, and 
make all the paths relative to this directory in include() and 
require().
Bye,
        Arpi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to