pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: god@heaven.club.ne.jp
To: pgsql-admin@postgresql.org
Subject: Need a help
Date: 6 Jun 2001 04:54:29 -0000
Message-ID: <20010606045429.14171.qmail@regist.clubbbq.com> (raw)


By Php scripts I am connecting to database SERVER:

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




Message-ID: <20010606045429.14171.qmail@regist.clubbbq.com>
Permalink:  ../20010606045429.14171.qmail@regist.clubbbq.com/
Also on:    postgresql.org/message-id/20010606045429.14171.qmail@regist.clubbbq.com

 · 

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-admin@postgresql.org
  Cc: god@heaven.club.ne.jp
  Subject: Re: Need a help
  In-Reply-To: <20010606045429.14171.qmail@regist.clubbbq.com>
  References: <20010606045429.14171.qmail@regist.clubbbq.com>

* 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