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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try connecting to it on port 80, the default for web servers. You can actually play around by connecting to a webserver (or mail server) through telnet. On the command line just type "telnet website.com 80". If the server is up, you should be able to interact with the webserver. Type something and press return. If you didn't type a valid command, you'll get some html code back.
You should be able to do something like this with all the commands in php, I have looked into which ones.




On May 10, 2005, at 7:59 AM, balwant singh wrote:

Hi,

I want to make a page (on a webserver) which will be redirected to another page on another webserver and hence i want to know whether the another webserver is running or not so that if the webserver is not running it do something else.

is there any method to know whether the other webserver is running or not.

your help will be appreciated.


with best wishes balwant

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux