RE: [PEAR-DEV] include_path
| From: | Lukas Smith | Date: | Sat, 16 Nov 2002 11:27:04 +0000 |
| Subject: | RE: [PEAR-DEV] include_path | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10867@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Stig S. Bakken [mailto:ssb@fast.no]
> Sent: Saturday, November 16, 2002 12:11 AM
> To: Lukas Smith
> Cc: pear-dev@lists.php.net
> Subject: Re: [PEAR-DEV] include_path
>
> 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_p
at
> h'));
>
Aeh how is that going to help me? I dont need the current directory to
be in the include path but the relative path to the MDB.php file.
The thing is that I need to set the include path if I run the tests in
CVS, but I dont want this include path to be set anymore when the tests
are installed locally.
Regards,
Lukas