php实现ping
更新时间:2006年10月09日 00:00:00 作者:
<?php // created by joe lumbroso
// see some other good php3 scripts
// goto http://www.dtheatre.com/scripts echo "<font color=\"red\"><blink><b>Pinging</b></blink></font><br>";
$to_ping = "dtheatre.com";
$count = 3;
$psize = 65;
echo " Please be patient, this can take a few moments...\n<br><br>";
flush(); while (1) {
?>
<pre>
<?
exec("ping -c $count -s $psize $to_ping", $list);
for ($i=0;$i < count($list);$i++) {
print $list[$i]."\n";
}
?>
</pre>
<?
flush();
sleep(3);
}
?> (出处:Viphot)
相关文章
PHP CURL CURLOPT参数说明(curl_setopt)
这篇文章主要介绍了PHP CURL CURLOPT参数,需要的朋友可以参考下2013-09-09
最新评论