[PHP] Checking if a website is up?

2004-03-30 Thread Henry Grech-Cini
Hi All, I am trying to check if a website is up (reachable) and I have used the standard code below: Unfortunately this works for most sites but Microsoft doesn't work most of the time even thought the site is definiately up! (Occassionally it does say it is reachable but only occassionaly and

Re: [PHP] Checking if a website is up?

2004-03-30 Thread Chris Hayes
I am trying to check if a website is up (reachable) and I have used the standard code below: [...] $socket = @fsockopen( $host, $port, $errno, $errstr, 30 ); if (!$socket) fwrite ($socket, HEAD .$documentpath. HTTP/1.0\r\nHost: $host\r\n\r\n); $http_response =

Re: [PHP] Checking if a website is up?

2004-03-30 Thread Curt Zirzow
* Thus wrote Henry Grech-Cini ([EMAIL PROTECTED]): Hi All, I am trying to check if a website is up (reachable) and I have used the standard code below: else { fwrite ($socket, HEAD .$documentpath. HTTP/1.0\r\nHost: $host\r\n\r\n); $http_response =