RE: [PHP] Using PHP to test if server is online

2001-07-03 Thread scott [gts]
try: fopen('http://server.com/index.php'); or you could probably grab the output of 'ping server.com' (assuming server.com accepts pings) > -Original Message- > From: Vikram Vaswani [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 03, 2001 1:48 AM > To: [EMAIL PROTECTED] > Subject: [PHP

Re: [PHP] Using PHP to test if server is online

2001-07-03 Thread Christian Reiniger
On Tuesday 03 July 2001 07:47, Vikram Vaswani wrote: > I am writing a PHP script to test if the server on which it is running > is currently connected to the Internet. If so, the main page will > display a notice saying "We are now online", else it will say "Not > connected" > > Any ideas on how

Re: [PHP] Using PHP to test if server is online

2001-07-03 Thread Gunther E. Biernat
>I am writing a PHP script to test if the server on which it is running is >currently connected to the Internet. If so, the main page will display a >notice saying "We are now online", else it will say "Not connected" > >Any ideas on how to do this with PHP? I'm guessing it would involve some >kin