Re: How to determine if PEAR is available
| From: | maestroQC | Date: | Thu, 09 Feb 2006 02:32:12 +0000 |
| Subject: | Re: How to determine if PEAR is available | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22893@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On 2/8/06, maestroQC <maestroQC@gmail.com> wrote:As always I try to find the answer first.... I have read the manual not all of it but at least the Preface and Chapters 1 thru 3. Which are Introduction, Installation and Support. I have searched for php.ini in the one big html file manual and found what you have suggested in Chapter 6 FAQ. Perhaps this one line instruction would be better placed in the Installation Chapter. Thanks again for your time and patience. - GlennJustin Patrin wrote:php.ini. Please start actually looking at the manual or trying google before posting these qestions. -- Justin Patrin Thanks for the reply.On 2/8/06, maestroQC <maestroQC@gmail.com> wrote: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?Justin Patrin wrote:Your include_path. -- Justin PatrinOn 2/8/06, maestroQC <maestroQC@gmail.com> wrote: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?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