LiveUser
[ class tree: LiveUser ] [ index: LiveUser ] [ all elements ]

File: demodata.php

Source Location: /LiveUser-0.16.14/docs/examples/demodata.php

Classes:

Page Details:

This script will populate the database with the necessary data to run the example.

Syntax: DefineGenerator [options] ...where [options] can be: -h --help : Shows this list of options

-d --dsn (required): Defines the PEAR::DB DSN to connect to the database. Example: --dsn=mysql://user:passwd@hostname/databasename or -d "mysql://user:passwd@hostname/databasename"

-c --create (optional): Defines if the database needs to be created or not. Example: --create=1 or -c "1"

-f --file (required): input file containing the structure and data in MDB2_Schema format. Example: --file=/path/to/output/file.xml

Example usage: php demodata.php -d mysql://root:@localhost/liveuser_test_example5 -f example5/demodata.xml

Alternativly you can also call the script from the web using GET demodata.php?dsn=mysql://root:@localhost/liveuser_test_example5&file=example5/demodata.xml&create=1

PHP version 4 and 5

LICENSE: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Includes:

require_once('MDB2/Schema.php') [line 57]
require_once('Console/Getopt.php') [line 77]

printHelp [line 169]

void printHelp( )

Prints out a list of commandline options


[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:40:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.