From c47de27c114c9998acc01fd2c6df185cd271ec2f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 7 May 2008 12:48:07 -0400 Subject: beginnings of PHP darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz --- config.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config.php (limited to 'config.php') diff --git a/config.php b/config.php new file mode 100644 index 000000000..c178baf9c --- /dev/null +++ b/config.php @@ -0,0 +1,24 @@ + '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', + -- cgit v1.2.3-54-g00ecf