手机
当前位置:查字典教程网 >编程开发 >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实现文本数据导入SQL SERVER

php+oracle 分页类

用PHP实现验证码功能

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

php实现window平台的checkdnsrr函数

用Php实现链结人气统计

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

php实现的ping端口函数实例

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

php实现插入排序

精品推荐
分类导航