RE: [PEAR] Fatal error: Undefined class name 'db' in C:\...\Apache2\htdocs\test\db2.php on line 9

From: Date: Mon, 22 Sep 2003 11:10:03 +0000
Subject: RE: [PEAR] Fatal error: Undefined class name 'db' in C:\...\Apache2\htdocs\test\db2.php on line 9
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7949@lists.php.net to get a copy of this message
> From: Lukas Smith [mailto:smith@backendmedia.com] > Sent: Monday, September 22, 2003 12:33 PM > > > From: Simons, Wouter [mailto:wouter.simons@dhv.nl] > > Sent: Monday, September 22, 2003 12:27 PM > > To: pear-general@lists.php.net > > Subject: [PEAR] Fatal error: Undefined class name 'db' in > > C:\...\Apache2\htdocs\test\db2.php on line 9 > > on line 9 put > > print_r($db); > > most likely $db does not hold a PEAR::Db object but a PEAR Error object > with the error information. Doh .. sorry misread your error. Ok here is a guess .. is there a DB.php in the directory in which the file is that is called from the webserver? Regards, Lukas

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