手机
当前位置:查字典教程网 >编程开发 >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.ini中文版

php分页函数

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

PHP中实现进程间通讯

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

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

PHP+shell实现多线程的方法

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

php实现插入排序

php实现的ping端口函数实例

精品推荐
分类导航