php实现ping

2019-04-07 19:25:50王振洲

<?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实现的ping端口函数实例php使用百度ping服务代码实例php模拟ping命令(php exec函数的使用方法)用asp与php实现百度ping服务的代码PHP的博客ping服务代码Ping服务的php实现方法,让网站快速被收录PHP 获取 ping 时间的实现方法
相关文章 大家在看