Re: Script Hangs on

From: Ariunbold Gerelt-Od <gereltod(at)kikakuya(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Script Hangs on
Date: 2001-06-06 05:39:08
Message-ID: 3B1DC1FC.63DC2905@kikakuya.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-php


Frist ,How in script could I Ping?
Second,from command line Ping also hangs.

Csaba Bobak wrote:

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Grant 2001-06-06 05:53:02 Re: [ADMIN] Script Hangs on
Previous Message Ariunbold Gerelt-Od 2001-06-06 05:32:49 Script hangs on

Browse pgsql-php by date

  From Date Subject
Next Message Grant 2001-06-06 05:53:02 Re: [ADMIN] Script Hangs on
Previous Message Csaba Bobak 2001-06-06 05:31:19 Re: Script Hangs on