手机
当前位置:查字典教程网 >编程开发 >php教程 >php实现ping
php实现ping
摘要:(出处:Viphot)

<?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分页函数

php简单实现快速排序的方法

php实现的mongodb操作类实例

php实现读取和写入tab分割的文件

用asp与php实现百度ping服务的代码

php+ajax实现无刷新动态加载数据技术

用Php实现链结人气统计

php实现求相对时间函数

php实现的mongodb操作类

php实现文本数据导入SQL SERVER

精品推荐
分类导航