summaryrefslogtreecommitdiff
path: root/config.php
blob: c178baf9c9962bf9d844d6a040fd0dc3c30f2a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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',