[Dehs-devel] r108 - trunk/www

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Mon Feb 11 02:12:03 UTC 2008


Author: atomo64-guest
Date: 2008-02-11 02:12:02 +0000 (Mon, 11 Feb 2008)
New Revision: 108

Modified:
   trunk/www/config_www.inc
Log:
Try to stablish a non-persistent connection if pg_pconnect fails

Modified: trunk/www/config_www.inc
===================================================================
--- trunk/www/config_www.inc	2008-02-11 02:01:17 UTC (rev 107)
+++ trunk/www/config_www.inc	2008-02-11 02:12:02 UTC (rev 108)
@@ -1,6 +1,9 @@
-<?
+<?php
 $db = @pg_pconnect("dbname=dehs host=localhost");
 if (!$db) {
+	$db = @pg_connect("dbname=dehs host=localhost");
+}
+if (!$db) {
 	echo "Db error";
 	die(1);
 }




More information about the Dehs-devel mailing list