Re: Detecting Pear....

From: Date: Fri, 09 Sep 2005 23:55:09 +0000
Subject: Re: Detecting Pear....
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20892@lists.php.net to get a copy of this message
On 9/9/05, Michael J. Pawlowsky <mikep@mi-consultants.com> wrote: > I would like to use Pear for a project I am making for someone else, but > it will be distributed in a way where people might not be able to > install Pear on their machines. So I was thinking of simply including > the classes I need with the archive I will give them. > > So somehow I need to be able to detect if Pear is in their inlcude path > and if not then include it with the one that I will have in my > distriubution. > > What would be the best way to detect if pear is installed and in the > persons include path already? > if (@include('PEAR.php')) I would think. Then add your path to include_path if it's false. This could, of course, end up using an old version of PHP on a shared webhost, though. Anyone who can put any PHP files on their website can install PEAR. Either through the web installer or with the new remote-install feature of PEAR 1.4. -- Justin Patrin

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