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

2005-05-10 Thread Greg Donald
On 5/10/05, Blair Lowe <[EMAIL PROTECTED]> wrote: > Crackers will typically knock out php Did you have some statistics or is this just your own experience/assumption? I may as well switch to mod_ruby if they attack mod_php more often than not. -- Greg Donald Zend Certified Engineer http://dest

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

2005-05-10 Thread Blair Lowe
On Tue, 2005-05-10 at 08:33, Greg Donald wrote: > On 5/10/05, balwant singh <[EMAIL PROTECTED]> 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,

RE: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Mark Rees
ECTED] Sent: 10 May 2005 15:44 To: balwant singh Cc: php-general@lists.php.net Subject: Re: [PHP] how to know whether web server of a remote machine is running or not Try connecting to it on port 80, the default for web servers. You can actually play around by connecting to a webserver (or mail s

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

2005-05-10 Thread Leif Gregory
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

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

2005-05-10 Thread Petar Nedyalkov
On Tuesday 10 May 2005 14:59, 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 e

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

2005-05-10 Thread Brent Baisley
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

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

2005-05-10 Thread Greg Donald
On 5/10/05, balwant singh <[EMAIL PROTECTED]> 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. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP Genera

[PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread balwant singh
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 webserve