优秀的软件开发团队:深圳升蓝软件 数据库开发 .Net技术  |  ASP技术 PHP技术 JSP技术 应用技术类     
推荐产品和技术
升蓝OA办公自动化系统
基于.Net技术的网络
协同办公环境
 
入门教程
图像处理
XML应用
FTP/HTTP/Debug
数据库操作
邮件处理
文件处理
经典文章
 
相关链接
 
 
系统集成开发
OA办公系统版本和报价
诚聘程序员
电子商务/企业网站
商业网站常见类型
全球网站排名提升
网站推广价格表
 
 
 
升蓝开发团队 > 技术资料 > PHP技术 > 入门教程 : php实现ping

php实现ping


March 25,2004

<?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);
}
?>





       
数据库开发 | .Net技术 | ASP技术 | PHP技术 | JSP技术 | 应用技术类 | 升蓝开发小组
Copyright ? 2001-2004 Shenzhen Hi-blue Software Team 升蓝开发小组 All rights reserved