[nycphp-talk] Fatal error when trying to connect to db using DB/MySQL
Analysis & Solutions
danielc at analysisandsolutions.com
Mon Sep 15 14:13:21 EDT 2003
Peter:
On Mon, Sep 15, 2003 at 01:12:02PM -0400, Peter Lehrer wrote:
>
> Fatal error: Class db_common: Cannot inherit from undefined class pear
> in C:\php\pear\DB-1.3\DB\common.php on line 29
>
> I checked line 29 of common.php and there is:
>
> "class DB_common extends PEAR"
The error message says it all. Line 29 is creating a new class that
extends a class named PEAR. Unfortunately, the class named pear could not
be found. It's kind of hard to extend something that can't be found, so
PHP says so and stops.
Now, the question is WHY the PEAR class can't be found. I'd guess your
include path doesn't match your installation. Or, perhaps, you botched
your installation all together.
--Dan
PS: Ditch the HTML email. See http://www.expita.com/nomime.html
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list