pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ariunbold Gerelt-Od <gereltod@kikakuya.com>
To: pgsql-admin@postgresql.org
Subject: Script Hangs on
Date: Wed, 06 Jun 2001 13:55:27 +0900
Message-ID: <3B1DB7BF.534EBA89@kikakuya.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?






view thread (7+ messages)  latest in thread

Message-ID: <3B1DB7BF.534EBA89@kikakuya.com>
Permalink:  ../3B1DB7BF.534EBA89@kikakuya.com/
Also on:    postgresql.org/message-id/3B1DB7BF.534EBA89@kikakuya.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-php@postgresql.org
  Cc: gereltod@kikakuya.com, pgsql-admin@postgresql.org
  Subject: Re: Script Hangs on
  In-Reply-To: <3B1DB7BF.534EBA89@kikakuya.com>
  References: <3B1DB7BF.534EBA89@kikakuya.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