Script Hangs on

From: Ariunbold Gerelt-Od <gereltod(at)kikakuya(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Script Hangs on
Date: 2001-06-06 04:55:27
Message-ID: 3B1DB7BF.534EBA89@kikakuya.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-php

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?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Grant 2001-06-06 05:21:01 Re: Script Hangs on
Previous Message god 2001-06-06 04:54:29 Need a help

Browse pgsql-php by date

  From Date Subject
Next Message Grant 2001-06-06 05:21:01 Re: Script Hangs on
Previous Message Chris Ruprecht 2001-06-05 19:17:02 Re: [PHP] PHP-PostgreSQL - install