Re: Using two different PEAR packages on the same server

From: Date: Wed, 07 Apr 2004 23:57:49 +0000
Subject: Re: Using two different PEAR packages on the same server
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11731@lists.php.net to get a copy of this message
"Frederic Trudeau" <ftrudeau@zesolution.com> wrote: > ----- Original Message ----- > From: "Frederic Trudeau" <ftrudeau@zesolution.com> > To: <pear-general@lists.php.net> > Sent: Wednesday, April 07, 2004 5:32 PM > Subject: [PEAR] Using two different PEAR packages on the same server > > > > > > Greetings. > > > > I've got some stable releases of various PEAR packages already installed > in > > /usr/share/pear > > I would like to test alpha's and beta's of the same packages, by putting > > them in a a lib/ dir > > inside a docroot. > > > > However, it seams that when a package depends on another, this package > will > > always grab > > the one located in /usr/share/pear first, which I do not want. > > > > Any way to make PHP look only in my own docroot for include files ? If you're running apache, I'd suggest setting the include_path directive in a .htaccess like this: php_value include_path "." Else use set_ini() in your script. I suppose it would be easiest for you to set it for all documents in your docroot. The other way would be to include a configuration file in each script (all linked to the same, of course), so that you can easily activate or deactivate the unstable packages by commenting out the set_ini line. hth, Klaus

« previous php.pear.general (#11731) next »