$dbhost = 'db1.netdojo.com';
$dbname = 'skinne';
$dbuser = 'skinne';
$dbpass = 'loozw@t3';
$dbport = 5433;
// v7 Connect
// Connecting w/out the port should default to the v7 one
echo "Connecting to v7 db...";
if(pg_pconnect("host=" . addslashes($dbhost). " dbname=" . addslashes($dbname) . " user=" . addslashes($dbuser) . " password='" . addslashes($dbpass)."'"))
echo "... success!";
else
echo "... failure!";
// v8 Connect
// Connecting w/ the port should connect to the v8 db
echo "
Connecting to v8 db...";
if(pg_pconnect("host=" . addslashes($dbhost). " dbname=" . addslashes($dbname) . " user=" . addslashes($dbuser) . " password='" . addslashes($dbpass)."' port=$dbport"))
echo "... success!";
else
echo "... failure!";
?>
phpinfo(); ?>