home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / setup.inc.cvs < prev    next >
Encoding:
Text File  |  2004-03-24  |  1.3 KB  |  46 lines

  1. <?php
  2.  
  3. /*
  4.  * This is the original "setup.inc.cvs" file from CVS.
  5.  *
  6.  * PREPARATION:
  7.  *   1) make a copy of this file named "setup.inc"
  8.  *   2) edit the DRIVER_DSN's as appropriate for your environment
  9.  *   3) comment out the blank DRIVER_DSN
  10.  *   4) before each run, uncomment the one DRIVER_DSN you want
  11.  *      to use during that run
  12.  */
  13.  
  14. if (!defined('PATH_SEPARATOR')) {
  15.     if (stristr(PHP_OS, 'WIN')) {
  16.         define('PATH_SEPARATOR', ';');
  17.     } else {
  18.         define('PATH_SEPARATOR', ':');
  19.     }
  20. }
  21.  
  22. ini_set('include_path', realpath(dirname(__FILE__) . '/../..')
  23.         . PATH_SEPARATOR . '.' . PATH_SEPARATOR
  24.         . ini_get('include_path')
  25. );
  26.  
  27. require_once 'DB.php';
  28.  
  29. // Options used when connecting
  30. $options = array(
  31.     //'optimize' => 'portability',
  32.     'portability' => DB_PORTABILITY_ALL,
  33.     'debug' => 2,
  34. );
  35.  
  36. define('DRIVER_DSN', '');
  37. //define('DRIVER_DSN', 'pgsql://postgres@localhost/test');
  38. //define('DRIVER_DSN', 'mysql://root@localhost/test');
  39. //define('DRIVER_DSN', 'oci8://system:manager@');
  40. //define('DRIVER_DSN', 'ibase(firebird)://SYSDBA:masterkey@//opt/interbase/examples/employee.gdb?dialect=3');
  41. //define('DRIVER_DSN', 'mssql://sa@somehost/pubs');
  42. //define('DRIVER_DSN', 'odbc(db2)://db2inst1:XXXX@/SAMPLE');
  43. //define('DRIVER_DSN', 'sqlite://dummy:@localhost/' . getcwd() . DIRECTORY_SEPARATOR . 'test.db?mode=0644');
  44.  
  45. ?>
  46.