Re: Cheap Ping
| From: | tedd | Date: | Fri, 13 Apr 2007 22:03:43 +0000 |
| Subject: | Re: Cheap Ping | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252894@lists.php.net to get a copy of this message | ||
At 12:37 PM -0700 4/13/07, Paul Novitski wrote:
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.comAt 11:16 PM -0600 4/12/07, ccspencer@softhome.net wrote:At 4/13/2007 08:56 AM, tedd wrote:I am trying to find a simple way to test to see if a web site is up or not.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.