Re: How to determine if PEAR is available

From: Date: Wed, 08 Feb 2006 22:14:04 +0000
Subject: Re: How to determine if PEAR is available
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22877@lists.php.net to get a copy of this message
Justin Patrin wrote:
On 2/8/06, maestroQC <maestroQC@gmail.com> wrote:
Justin Patrin wrote:
On 2/8/06, maestroQC <maestroQC@gmail.com> wrote:
Hi, I'd like to determine if PEAR is available in the PHP installation my ISP has set up.
require_once('PEAR.php'); However, you should probably just install a local copy. See the PEAR manual page on installing in a shared environment. -- Justin Patrin
Yes I trying to set it up on my server before anything else. I have ran the go-pear.bat and followed the defaults. Created a simple php page of the example you provided and this is what I get: Warning: main(PEAR.php): failed to open stream: No such file or directory in c:\program files\apache group\apache\htdocs\lao\phppear.php on line 2 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.;c:\php4\pear') in c:\program files\apache group\apache\htdocs\lao\phppear.php on line 2 What am I missing to get this to run?
Your include_path. -- Justin Patrin Alright I was able to figure that much out... but where does the include path go? In the PHP file(script)... or somewhere in the environment variables... or in the PHP.ini file? or somewhere else?
- Glenn

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