Re: Script Hangs on - Mailing list pgsql-admin

From Csaba Bobak
Subject Re: Script Hangs on
Date
Msg-id 20010606.5311931@csaba.trendkft.hu
Whole thread Raw
In response to Script Hangs on  (Ariunbold Gerelt-Od <gereltod@kikakuya.com>)
List pgsql-admin
> <?php
> $port=9939;
> $host=\"210.111.1.10\";
> pg=pg_connect($port,$host);
> ?>

> 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?


A simple ping maybe? :-)


Csaba



__________
This message went through virus scan at Trend Ltd. which stated
the message was clean of viri appeared before 2001.05.24.

pgsql-admin by date:

Previous
From: Ariunbold Gerelt-Od
Date:
Subject: Re: Script Hangs on
Next
From: Ariunbold Gerelt-Od
Date:
Subject: Script hangs on