Re: include_path
| From: | Stig S. Bakken | Date: | Fri, 15 Nov 2002 23:10:53 +0000 |
| Subject: | Re: include_path | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10856@lists.php.net to get a copy of this message | ||
On Thu, 2002-11-14 at 17:32, Lukas Smith wrote:
> Hi,
>
> I have added the following line to my test scripts:
> ini_set('include_path', '../:'.ini_get('include_path'));
>
> now everything works happily when I run the tests in CVS.
> But I probably don’t want this line in the installed tests when I am
> running the tests not in my cvs tree
What about this:
ini_set('include_path',dirname(dirname(__FILE__)).':'.ini_get('include_path'));
> Another question: how am I supposed to handle the ':' (*nix) vs. ';'
> (win32) issue?
A PATH_SEPARATOR constant will appear in 4.3.0.
- Stig
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb