2008-05-08 01:48:07 +09:00
|
|
|
<?php
|
|
|
|
|
2008-05-15 04:00:09 +09:00
|
|
|
if (!defined('MICROBLOG')) { exit(1) }
|
|
|
|
|
2008-05-08 01:48:07 +09:00
|
|
|
$dsn = array(
|
|
|
|
'phptype' => 'pgsql',
|
|
|
|
'username' => 'someuser',
|
|
|
|
'password' => 'apasswd',
|
|
|
|
'hostspec' => 'localhost',
|
|
|
|
'database' => 'thedb',
|
|
|
|
);
|
|
|
|
|
|
|
|
$options = array(
|
|
|
|
'debug' => 2,
|
|
|
|
'portability' => DB_PORTABILITY_ALL,
|
|
|
|
);
|
|
|
|
|
|
|
|
$db =& DB::connect($dsn, $options);
|
|
|
|
if (PEAR::isError($db)) {
|
|
|
|
die($db->getMessage());
|
|
|
|
}
|
|
|
|
|
|
|
|
$config['db'] =
|
|
|
|
array( 'username' => 'stoica',
|
|
|
|
'password' => 'replaceme',
|
|
|
|
|