Need a help

From: god(at)heaven(dot)club(dot)ne(dot)jp
To: pgsql-admin(at)postgresql(dot)org
Subject: Need a help
Date: 2001-06-06 04:54:29
Message-ID: 20010606045429.14171.qmail@regist.clubbbq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


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?

Browse pgsql-admin by date

  From Date Subject
Next Message Ariunbold Gerelt-Od 2001-06-06 04:55:27 Script Hangs on
Previous Message Tauren Mills 2001-06-06 01:15:29 RE: Alternate database locations