diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-07 12:48:07 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-07 12:48:07 -0400 |
commit | c47de27c114c9998acc01fd2c6df185cd271ec2f (patch) | |
tree | a3d42ce54a069bdd364ec34be22b7f8f39f33f4d /config.php | |
parent | d0e8a3b9ab2442d812ec897d90612d9833beee26 (diff) |
beginnings of PHP
darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz
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', + |