Re: dependencies and applications
| From: | Jan Schneider | Date: | Thu, 21 Aug 2003 19:44:12 +0000 |
| Subject: | Re: dependencies and applications | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20341@lists.php.net to get a copy of this message | ||
Zitat von Alexander Merz <alexander.merz@web.de>:
> Jan Schneider wrote:
>
> > We made the experience that relative include paths sometimes don't work
> thus
> > simply copying DB.php and the other files to the application's
> directory
> > won't be enough, even if "." is in the include path.
> What was the exact problem there?
> Typical the include_path is defined like ".;/usr/lib...". That is the
> reason why i wrote "copying to the app base dir", so normally this
> should work.
The problem is, that the path is relative to the script that currently runs,
not to the script that includes it.
That means if you include a file that in return includes another, it works
fine in one directory, but not anymore as soon as your "original" script is
in another directory.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft