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

From: Date: Tue, 03 Jul 2001 15:53:52 +0000
Subject: RE: [PHP] Using PHP to test if server is online
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55998@lists.php.net to get a copy of this message
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:vikram@w-o-i.com] > Sent: Tuesday, July 03, 2001 1:48 AM > To: php-general@lists.php.net > Subject: [PHP] Using PHP to test if server is online > > > Hi again, > > 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 > kind of socket connection... > > TIA, > > Vikram > -- > I took an IQ test, and the results were negative. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#55998) next »