pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Csaba Bobak <rendszergazdi@trendkft.hu>
To: Ariunbold Gerelt-Od <gereltod@kikakuya.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Script Hangs on
Date: Wed, 06 Jun 2001 05:31:19 GMT
Message-ID: <20010606.5311931@csaba.trendkft.hu> (raw)
In-Reply-To: <3B1DB7BF.534EBA89@kikakuya.com>
References: <3B1DB7BF.534EBA89@kikakuya.com>

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



view thread (7+ messages)  latest in thread

Message-ID: <20010606.5311931@csaba.trendkft.hu>
Permalink:  ../20010606.5311931@csaba.trendkft.hu/
Also on:    postgresql.org/message-id/20010606.5311931@csaba.trendkft.hu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: rendszergazdi@trendkft.hu, gereltod@kikakuya.com, pgsql-admin@postgresql.org
  Subject: Re: Script Hangs on
  In-Reply-To: <20010606.5311931@csaba.trendkft.hu>
  References: <3B1DB7BF.534EBA89@kikakuya.com> <20010606.5311931@csaba.trendkft.hu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox