diff options
Diffstat (limited to 'config.php')
-rw-r--r-- | config.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config.php b/config.php new file mode 100644 index 000000000..c178baf9c --- /dev/null +++ b/config.php @@ -0,0 +1,24 @@ +<?php + +$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', + |