Re: RE: nested includes
| From: | Tamas Arpad | Date: | Thu, 03 Jan 2002 13:48:14 +0000 |
| Subject: | Re: RE: nested includes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79308@lists.php.net to get a copy of this message | ||
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