note 100641 modified in function.pg-connect by danbrown
| From: | danbrown@php.net | Date: | Wed, 27 Oct 2010 20:47:14 +0000 |
| Subject: | note 100641 modified in function.pg-connect by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173528@lists.php.net to get a copy of this message | ||
One thing is to remember, whenever trying to use pg_connect, add the timeout parameter with it
<?php
$d=pg_connect('host=example.com user=pgsql dbname=postgres connect_timeout=5');
?>
--was--
One thing is to remember, whenever trying to use pg_connect, add the timeout parameter with it
$d=pg_connect('host=192.168.1.51 user=pgsql dbname=postgres connect_timeout=5')
http://php.net/manual/en/function.pg-connect.php