// created by joe lumbroso
// see some other good php3 scripts
// goto http://www.dtheatre.com/scripts
http://www.gaodaima.com/45417.htmlphp实现ping (转)_php
echo "Pinging
";
$to_ping = "dtheatre.com";
$count = 3;
$psize = 65;
echo " Please be patient, this can take a few moments.../n
";
flush();
while (1) {
?>
exec("ping -c $count -s $psize $to_ping", $list);
for ($i=0;$i < count($list);$i++) {
print $list[$i]."/n";
}
?>
flush();
sleep(3);
}
?>
欢迎大家阅读《php实现ping (转)_php》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码
原创文章,转载请注明: 转载自搞代码
微信 赏一包辣条吧~
支付宝 赏一听可乐吧~