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

From: Date: Tue, 10 May 2005 19:07:20 +0000
Subject: Re: how to know whether web server of a remote machine is running or not
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-214865@lists.php.net to get a copy of this message
On Tue, 2005-05-10 at 08:33, Greg Donald wrote: > On 5/10/05, balwant singh <balwantsingh@indoasian.com> wrote: > > is there any method to know whether the other webserver is running or not. > > There are lots of methods: > > system( 'telnet hostname 80' ); > > fopen(); > > fsockopen(); > > Curl. Hi, You may also want to know if php is running OK too. Crackers will typically knock out php, and then the usual web server tests work, and your php website(s) will not. I suppose a curl script would figure that out. TTYL, Blair.

« previous php.general (#214865) next »