home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- /*
- * This is the original "setup.inc.cvs" file from CVS.
- *
- * PREPARATION:
- * 1) make a copy of this file named "setup.inc"
- * 2) edit the DRIVER_DSN's as appropriate for your environment
- * 3) comment out the blank DRIVER_DSN
- * 4) before each run, uncomment the one DRIVER_DSN you want
- * to use during that run
- */
-
- if (!defined('PATH_SEPARATOR')) {
- if (stristr(PHP_OS, 'WIN')) {
- define('PATH_SEPARATOR', ';');
- } else {
- define('PATH_SEPARATOR', ':');
- }
- }
-
- /*
- * If the path to your PEAR installation is found in the left hand
- * portion of the if() expression below, that means this file has
- * come from the PEAR installer. Therefore, let's use the
- * installed version of DB, which should be found via the
- * computer's default include_path. Add '.' to the include_path
- * to ensure '.' is in there.
- *
- * If the path has not been substituted in the if() expression,
- * this file has likely come from a CVS checkout or a .tar file.
- * Therefore, we'll assume the tests should use the version of
- * DB that has come from there as well.
- */
- if ('C:\xarelease149\xampp\php\pear' != '@'.'include_path'.'@') {
- ini_set('include_path', ini_get('include_path')
- . PATH_SEPARATOR . '.'
- );
- } else {
- ini_set('include_path', realpath(dirname(__FILE__) . '/../..')
- . PATH_SEPARATOR . '.' . PATH_SEPARATOR
- . ini_get('include_path')
- );
- }
-
- require_once 'DB.php';
-
- // Options used when connecting
- $options = array(
- //'optimize' => 'portability',
- 'portability' => DB_PORTABILITY_ALL,
- 'debug' => 2,
- );
-
- //define('DRIVER_DSN', 'pgsql://postgres@localhost/test');
- //define('DRIVER_DSN', 'mysql://root@localhost/test');
- //define('DRIVER_DSN', 'oci8://system:manager@');
- //define('DRIVER_DSN', 'ibase(firebird)://SYSDBA:masterkey@//opt/interbase/examples/employee.gdb?dialect=3');
- //define('DRIVER_DSN', 'mssql://sa@somehost/pubs');
- //define('DRIVER_DSN', 'odbc(db2)://db2inst1:XXXX@/SAMPLE');
- //define('DRIVER_DSN', 'sqlite://dummy:@localhost/' . getcwd() . DIRECTORY_SEPARATOR . 'test.db?mode=0644');
-
- ?>
-