cvs: pear /DB_DataObject/DataObject createTables.php

From: Date: Thu, 21 Nov 2002 05:05:40 +0000
Subject: cvs: pear /DB_DataObject/DataObject createTables.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7507@lists.php.net to get a copy of this message
alan_k Thu Nov 21 00:05:40 2002 EDT Modified files: /pear/DB_DataObject/DataObject createTables.php Log: last of the cosmetics.. - thx to Arnaud Index: pear/DB_DataObject/DataObject/createTables.php diff -u pear/DB_DataObject/DataObject/createTables.php:1.12 pear/DB_DataObject/DataObject/createTables.php:1.13 --- pear/DB_DataObject/DataObject/createTables.php:1.12 Fri Oct 4 20:33:51 2002 +++ pear/DB_DataObject/DataObject/createTables.php Thu Nov 21 00:05:39 2002 @@ -16,29 +16,31 @@ // | Author: Alan Knowles <alan@akbkhome.com> // +----------------------------------------------------------------------+ // +// $Id: createTables.php,v 1.13 2002/11/21 05:05:39 alan_k Exp $ +// -require_once("DB/DataObject/Generator.php"); +require_once 'DB/DataObject/Generator.php'; if (!ini_get('register_argc_argv')) { - PEAR::raiseError("\nERROR: You must turn register_argc_argv On in you php.ini file for this to work\neg.\n\nregister_argc_argv = On\n\n",null,PEAR_ERROR_DIE); + PEAR::raiseError("\nERROR: You must turn register_argc_argv On in you php.ini file for this to work\neg.\n\nregister_argc_argv = On\n\n", null, PEAR_ERROR_DIE); exit; } if (!@$_SERVER['argv'][1]) { - PEAR::raiseError("\nERROR: createTable.php usage:\n\nC:\php\pear\DB\DataObjects\createTable.php example.ini\n\n",null,PEAR_ERROR_DIE); + PEAR::raiseError("\nERROR: createTable.php usage:\n\nC:\php\pear\DB\DataObjects\createTable.php example.ini\n\n", null, PEAR_ERROR_DIE); exit; } -$config = parse_ini_file($_SERVER['argv'][1],true); + +$config = parse_ini_file($_SERVER['argv'][1], true); $options = &PEAR::getStaticProperty('DB_DataObject','options'); $options = $config['DB_DataObject']; + if (!$options) { - PEAR::raiseError("\nERROR: could not read ini file\n\n",null,PEAR_ERROR_DIE); + PEAR::raiseError("\nERROR: could not read ini file\n\n", null, PEAR_ERROR_DIE); exit; } //DB_DataObject::debugLevel(5); $generator = new DB_DataObject_Generator; $generator->start(); - - -?> +?>

« previous php.pear.cvs (#7507) next »