手机
当前位置:查字典教程网 >编程开发 >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+ajax实现无刷新动态加载数据技术

php计数器的设计与实现第1/2页

php实现的简单日志写入函数

php实现读取内存顺序号

php实现求相对时间函数

用PHP实现验证码功能

php实现统计网站在线人数的方法

MVC模式的PHP实现

php实现的mongodb操作类实例

php生成zip文件类实例

精品推荐
分类导航