Script hangs on - Mailing list pgsql-admin

From Ariunbold Gerelt-Od
Subject Script hangs on
Date
Msg-id 3B1DC081.590855D7@kikakuya.com
Whole thread Raw
List 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?


pgsql-admin by date:

Previous
From: Csaba Bobak
Date:
Subject: Re: Script Hangs on
Next
From: Wm Brian McCane
Date:
Subject: Re: Re: Database over multiple drives