re: Trouble with DB_DataObject generator

From: Date: Tue, 30 Apr 2002 17:15:54 +0000
Subject: re: Trouble with DB_DataObject generator
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2371@lists.php.net to get a copy of this message
This is a little strange: line 91 - should be reading the options array which would have been read in by createTables.php.. Can you add this line in to see what is comming in from parse_ini_file.. $config = parse_ini_file($_SERVER['argv'][1],TRUE); #add a print_r, to see what is getting stored.. print_r($config); Regards Alan Hi folks, I'm trying to do this: php4 /usr/share/pear/DB/DataObject/createTables.php pwd/pear-data-object.ini and I get this: <b>Warning</b>: Invalid argument supplied for foreach() in <b>/usr/share/pear/DB/DataObject/Generator.php</b> on line <b>91</b><br /> DONE My .ini says: [DB_DataObject]
  database    = mysql://xxxuser:xxxpassword@localhost/xxxdb
schema_location = /home/mitch/public_html/staff/DataObjects class_location = /home/mitch/public_html/staff/DataObjects require_prefix = DataObjects/
  class_prefix    = DataObjects_
I'm using PHP 4.2.2 on Debian Linux, mysql debian package version 3.23.52-2, and some of the related PEAR versions: // $Id: DB.php,v 1.13 2002/07/02 15:19:49 cox Exp $ // $Id: DataObject.php,v 1.26 2002/09/10 04:34:06 alan_k Exp $ // $Id: PEAR.php,v 1.47 2002/07/21 07:04:45 ssb Exp $ Thanks for any hints! -- Mitchell Perilstein mitch@enetis.net www.enetis.net/~mitch +1 (605) 574-2367

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