cvs: pear /DB_DataObject/DataObject createTables.php example.ini

From: Date: Thu, 15 Aug 2002 03:42:22 +0000
Subject: cvs: pear /DB_DataObject/DataObject createTables.php example.ini
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5746@lists.php.net to get a copy of this message
alan_k Wed Aug 14 23:42:22 2002 EDT Modified files: /pear/DB_DataObject/DataObject createTables.php example.ini Log: Added production line and description to ini file Index: pear/DB_DataObject/DataObject/createTables.php diff -u pear/DB_DataObject/DataObject/createTables.php:1.5 pear/DB_DataObject/DataObject/createTables.php:1.6 --- pear/DB_DataObject/DataObject/createTables.php:1.5 Sun Jul 14 09:55:43 2002 +++ pear/DB_DataObject/DataObject/createTables.php Wed Aug 14 23:42:22 2002 @@ -19,14 +19,12 @@ require_once("DB/DataObject/Generator.php"); -if (!ini_get('register_argc_argv')) { - PEAR::raiseError("\nERROR: createTable.php requires register_argc_argv to be set in you php.ini\n\n",null,PEAR_ERROR_DIE); -} -if (!@$_SERVER['argv'][1]) { + +if (!@$argv[1]) { PEAR::raiseError("\nERROR: createTable.php usage:\n\ncreateTable example.ini\n\n",null,PEAR_ERROR_DIE); exit; } -$config = parse_ini_file($_SERVER['argv'][1],TRUE); +$config = parse_ini_file($argv[1],TRUE); $options = &PEAR::getStaticProperty('DB_DataObject','options'); $options = $config['DB_DataObject']; //DB_DataObject::debugLevel(5); @@ -34,4 +32,4 @@ $generator->start(); -?> +?> \ No newline at end of file Index: pear/DB_DataObject/DataObject/example.ini diff -u pear/DB_DataObject/DataObject/example.ini:1.3 pear/DB_DataObject/DataObject/example.ini:1.4 --- pear/DB_DataObject/DataObject/example.ini:1.3 Tue Jun 25 03:56:39 2002 +++ pear/DB_DataObject/DataObject/example.ini Wed Aug 14 23:42:22 2002 @@ -40,5 +40,8 @@ ; usefull if you want to add an extra layer - eg. a table level auth scheme.. ; optional :: default = DB_DataObject -debug =0 +debug = 0 ; default debugging level +production = 0 +; this disables all debugging (so you cant set it run time), and should +; improve performace \ No newline at end of file

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