Skip site navigation (1) Skip section navigation (2)

Re: Script Hangs on

From: Csaba Bobak <rendszergazdi(at)trendkft(dot)hu>
To: Ariunbold Gerelt-Od <gereltod(at)kikakuya(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Script Hangs on
Date: 2001-06-06 05:31:19
Message-ID: 20010606.5311931@csaba.trendkft.hu (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-php
> <?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

pgsql-admin by date

Next:From: Ariunbold Gerelt-OdDate: 2001-06-06 05:32:49
Subject: Script hangs on
Previous:From: Tom LaneDate: 2001-06-06 05:25:06
Subject: Re: Alternate database locations

pgsql-php by date

Next:From: Ariunbold Gerelt-OdDate: 2001-06-06 05:39:08
Subject: Re: Script Hangs on
Previous:From: GrantDate: 2001-06-06 05:21:01
Subject: Re: Script Hangs on

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group