Re: Cheap Ping

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

 



At 12:37 PM -0700 4/13/07, Paul Novitski wrote:
At 11:16 PM -0600 4/12/07, ccspencer@xxxxxxxxxxxx wrote:
I am trying to find a simple way to test to see if a web site
is up or not.

At 4/13/2007 08:56 AM, tedd wrote:
Try:

if ($unix)
   {
   system ("ping -c$count -w$count $host");
   system("killall ping");
   }
else
   {
   system("ping -n $count $host");
   }


What's a circumstance in which one would want to ping without getting a return value? Short of attempting a denial of service barrage? Really, I'm not being snide, just curious.

It's a bit of code taken from:

http://www.theworldsend.net/  <- the first example.

While I haven't used it, it seemed to be related to the OP subject, no?.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
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