Received: from mx121.kikakuya.ne.jp (kzdb.kikakuya.ne.jp [211.133.137.55]) by postgresql.org (8.11.3/8.11.1) with SMTP id f565eaE88365 for ; Wed, 6 Jun 2001 01:40:37 -0400 (EDT) (envelope-from gereltod@kikakuya.com) Received: (qmail 12421 invoked from network); 6 Jun 2001 05:41:04 -0000 Received: from unknown (HELO kikakuya.com) (210.134.180.62) by kzdb.kikakuya.ne.jp with SMTP; 6 Jun 2001 05:41:04 -0000 Message-ID: <3B1DC1FC.63DC2905@kikakuya.com> Date: Wed, 06 Jun 2001 14:39:08 +0900 From: Ariunbold Gerelt-Od X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en,ru MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Script Hangs on References: <3B1DB7BF.534EBA89@kikakuya.com> <20010606.5311931@csaba.trendkft.hu> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Archive-Number: 200106/35 X-Sequence-Number: 1573 Frist ,How in script could I Ping? Second,from command line Ping also hangs. Csaba Bobak wrote: > > > $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.