RE: [PEAR] Problem creating tables from XML with MDB

From: Date: Fri, 11 Apr 2003 23:34:29 +0000
Subject: RE: [PEAR] Problem creating tables from XML with MDB
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4808@lists.php.net to get a copy of this message
> From: Merritt, Dave [mailto:Dave.Merritt@ArvinMeritor.com] > Sent: Friday, April 11, 2003 8:48 PM > I'm getting the following error when I try to run code to create new > tables > from an XML file using MDB: > > Fatal error: Undefined class name 'mdb' in c:\pear\MDB\manager.php on line > 269 > > The OOP stuff is new to me so I may be doing something wrong in my code, > but > I copied the examples in the documentation. Any help would be > appreciated. Sorry my fault. I need to update the online documentation with the version from CVS. I changed the way includes are handled in MDB. You now only include the MDB.php and all other files are included automatically (like the lob support). Other classes like MDB_Date and the MDB_Manager are included using MDB::loadFile(). This change was made because of the limitations of the require_once method that can get confused if you include the same file with different relative paths. So the first part of your script needs to look like this: <?php require_once('MDB.php'); MDB::loadFile('Manager'); ... regards, Lukas

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