Re: Re: Basic Install issue - Missing PEAR class?

From: Date: Thu, 27 Oct 2005 05:32:43 +0000
Subject: Re: Re: Basic Install issue - Missing PEAR class?
References: 1 2 3 4 5 6 7 8 9  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21672@lists.php.net to get a copy of this message
Found it! Thanks for the help guys, I noticed l:\sites\mumbai\PEAR.php in there which shouldn't have been. Removed that file and it included the correct one. Thanks again! Paul Paul Fitzpatrick wrote:
Hi Greg, Yes here are the results - array(10) { [0]=> string(28) "l:\sites\mumbai\bb_test1.php" [1]=> string(28) "l:\sites\mumbai\init.inc.php" [2]=> string(38) "c:\wamp\php\pear\HTML\BBCodeParser.php" [3]=> string(24) "l:\sites\mumbai\PEAR.php" [4]=> string(38) "c:\wamp\php\pear\Validate\Validate.php" [5]=> string(30) "c:\wamp\php\pear\PEAR\Info.php" [6]=> string(32) "c:\wamp\php\pear\PEAR\Remote.php" [7]=> string(32) "c:\wamp\php\pear\PEAR\Config.php" [8]=> string(34) "c:\wamp\php\pear\PEAR\Registry.php" [9]=> string(38) "c:\wamp\php\pear\PEAR\DependencyDB.php" } *Fatal error*: Class 'PEAR' not found in *c:\wamp\php\pear\PEAR\Registry.php* on line *52 ------------------------------- *Thats when I have registry.php including pear as "require_once 'PEAR.php'; (the original way) When I alter the registry.php code to 'require_once 'PEAR/PEAR.php'; It works as intended. Its taking an alteration of the original pear file to get it working at the moment. Heres a screenshot of my directory layout. The PEAR.php file is in the base folder of the include_path. It should be making it in but it isn't atm. Screenshot of my directory layout... http://ezhostingaustralia.com/pear.jpg Thanks, Paul * * Greg Beaver wrote:
Paul Fitzpatrick wrote:
Hi, Yes I meant to say yes that phpinfo(); is displaying the correct include path that I specified in php.ini
include_path     .;c:\wamp\php\PEAR     .;c:\wamp\php\PEAR
Certain files are having trouble finding the pear class for some reason. Any other info that could help track the problem down?
You haven't tried the var_dump(get_included_files()) Greg


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