Example Setup Files

Ex 1 (filename: ddataobjects.php)

<?php
error_reporting
(0);

//setup database connection fields
$database['dbname'] = 'database_name';
$database['host'] = 'localhost';
$database['port'] = '5432';
$database['user'] = 'username';
$database['password'] = 'password';

//optional - list tables from the database to include, if not set, all tables are included
//$include_tables = array("table1", "table3", "table5");

//optional - list schemas from the database to include, if not set, all schemas are included
//$include_schemas = array("schema1", "schema3", "schema5");


//setup library path
$setup['lib_path'] = '/path/to/lib';


require_once(
'http://www.ddataobjects.com/2.2/prog/setup_GET.php');
// if you download ddataobjects to use locally
//$path_to_local_directory = ''; // entered into box when downloaded, e.g. 'http://domain.com/ddataobjects'
//require_once("$path_to_local_directory/setup_GET.php");

?>



Ex 2 (filename: ddataobjects.php)

<?php
error_reporting
(0);

//setup database connection fields
$database['dbname'] = 'database_name';
$database['host'] = 'localhost';
$database['port'] = '5432';
$database['user'] = 'username';
$database['password'] = 'password';

//optional - list tables from the database to include, if not set, all tables are included
$include_tables = array("table1""table3""table5");

//optional - list schemas from the database to include, if not set, all schemas are included
$include_schemas = array("schema1""schema3""schema5");


//setup library path
$setup['lib_path'] = '/path/to/lib';


//require_once('http://www.ddataobjects.com/2.2/prog/setup_GET.php');
// if you download ddataobjects to use locally
$path_to_local_directory 'http://mydomain.com/ddataobjects'// entered into box when downloaded, e.g. 'http://domain.com/ddataobjects'
require_once("$path_to_local_directory/setup_GET.php");

?>