Re: how to know whether web server of a remote machine is running or not

From: Date: Tue, 10 May 2005 15:00:23 +0000
Subject: Re: how to know whether web server of a remote machine is running or not
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-214847@lists.php.net to get a copy of this message
Hello balwant, Tuesday, May 10, 2005, 5:59:15 AM, you wrote: b> is there any method to know whether the other webserver is running b> or not. http://us2.php.net/fsockopen You'll be doing what's termed an HTTP Ping. You make a socket connection to the other server, perform a GET request on a page (preferably small), examine the returned headers for a Status 200 (which means OK). If you get that, the webserver responded and served up the page. You might just be able to do a HEAD request, but I haven't tried it. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.5 Return RC5 under Windows XP 5.1 Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

« previous php.general (#214847) next »