home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / xamp / xampp-win32.exe / xampp / connect.inc < prev    next >
Encoding:
Text File  |  2004-10-01  |  510 b   |  28 lines

  1. <?php
  2.  
  3. error_reporting(E_ALL);
  4.  
  5. require_once './setup.inc';
  6.  
  7. if (!defined('DRIVER_DSN')) {
  8.     die('A DRIVER_DSN constant was not defined in setup.inc');
  9. }
  10.  
  11. if (substr(DRIVER_DSN, 0, 5) == 'mssql') {
  12.     ini_set('mssql.textlimit', 4096);
  13.     ini_set('mssql.textsize', 4096);
  14. }
  15.  
  16. // Setting of $options and requiring DB are done in setup.inc
  17.  
  18. $dbh =& DB::connect(DRIVER_DSN, $options);
  19. if (DB::isError($dbh)) {
  20.     die("connect.inc: ".$dbh->toString());
  21. }
  22.  
  23. function debug_die($o){
  24.     die($o->toString());
  25. }
  26.  
  27. ?>
  28.