/[hr-web]/inc/class.DBI
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/class.DBI

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by dpavlin, Fri Apr 20 08:25:32 2001 UTC revision 1.3 by ravilov, Wed Jun 19 18:32:42 2002 UTC
# Line 38  class DBI { Line 38  class DBI {
38          ereg( "(p)?dbi:(.+):(.+)", $dbi_connect_str, $regs )){          ereg( "(p)?dbi:(.+):(.+)", $dbi_connect_str, $regs )){
39        $dbi[db_type]       = $regs[2];        $dbi[db_type]       = $regs[2];
40        $dbi[db_name]       = $regs[3];        $dbi[db_name]       = $regs[3];
41        $dbi[db_host]       = ( $regs[5] ? $regs[5] : 'localhost' );        $dbi[db_host]       = ( $regs[5] ? $regs[5] : '' );
42        $dbi[is_persistent] = ( $regs[1] ? 1 : 0 );        $dbi[is_persistent] = ( $regs[1] ? 1 : 0 );
43        //echo "Connecting: [ ",        //echo "Connecting: [ ",
44          //$dbi[db_type],"][",          //$dbi[db_type],"][",
# Line 86  class DBI { Line 86  class DBI {
86        $db_passwd = $db_host;        $db_passwd = $db_host;
87        $db_type   = $regs[2];        $db_type   = $regs[2];
88        $db_name   = $regs[3];        $db_name   = $regs[3];
89        $db_host   = ( $regs[4] ? $regs[4] : 'localhost' );        #$db_host   = ( $regs[4] ? $regs[4] : 'localhost' );
90          $db_host   = ( $regs[4] ? $regs[4] : '' );
91        $is_persistent = ( $regs[1] ? 1 : 0 );        $is_persistent = ( $regs[1] ? 1 : 0 );
92        //echo "Connecting: [ $db_name ][ $dbh_user ][ $db_host ]<br>\n";        //echo "Connecting: [ $db_name ][ $dbh_user ][ $db_host ]<br>\n";
93      }      }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26