Script hangs on

From: Ariunbold Gerelt-Od <gereltod(at)kikakuya(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Script hangs on
Date: 2001-06-06 05:32:49
Message-ID: 3B1DC081.590855D7@kikakuya.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

By Php scripts I am connecting to database SERVER:

<?php
$port="9939";
$host="210.111.1.10";
pg=pg_connect($port,$host);
....
....

?>

It works good enough.
But problem is if somebody suddenly switch off
the server(210.111.1.10), the script hangs on.
How would my script check that host is open before connecting?

Browse pgsql-admin by date

  From Date Subject
Next Message Ariunbold Gerelt-Od 2001-06-06 05:39:08 Re: Script Hangs on
Previous Message Csaba Bobak 2001-06-06 05:31:19 Re: Script Hangs on