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],"][", |