Re: Help - Pear DB_DataObjects
| From: | Alan Knowles | Date: | Fri, 21 Feb 2003 01:03:20 +0000 |
| Subject: | Re: Help - Pear DB_DataObjects | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3876@lists.php.net to get a copy of this message | ||
It needs an updated pear package - try
pear install PEAR
Regards
Pauline Johnston wrote:
Hello I would really appreciate some help with the configuration & installation of Pear DB_DataObjects. When I run: ...\php4\php.exe createTables.php db.ini I get this X-Powered-By: PHP/4.2.2 Content-type: text/html <br /> <b>Fatal error</b>: Call to undefined function: getstaticproperty() in <b>c:\...\php4\pear\DB\DataObject.php</b> on line <b>1787</b><br /> My db.ini file looks like this: [DB_DataObject]That loads the db.ini file into a static variable (stored and fetched using PEAR::getStaticProperty(), so that it can be read at any time by the DB_DataObject class. - it allows you to load the config without having to load DataObjects. Regards Alandatabase = mysql://xxx:xxx@./dbschema_location = /.../DataObjects class_location = /.../DataObjects require_prefix = DataObjects/class_prefix = DataObjects_I didn't understand what you were meant to do with example 2 shown at http://pear.php.net/manual/en/packages.database.db-dataobject.configuration. php as it doesn't explain...
Any help gladly received! thanks, Pauline