RE: [PEAR-DEV] include_path
| From: | Stig S. Bakken | Date: | Sun, 17 Nov 2002 00:02:39 +0000 |
| Subject: | RE: [PEAR-DEV] include_path | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10873@lists.php.net to get a copy of this message | ||
On Sat, 2002-11-16 at 12:27, Lukas Smith wrote:
> > -----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 don’t 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 don’t want this include path to be set anymore when the tests
> are installed locally.
But "the relative path to the MDB.php file" is exactly what you'll get
with the code above. :-)
- Stig
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb