深圳升蓝软件
数据库开发 .Net技术  |  ASP技术 PHP技术 JSP技术 应用技术类   
Hiblue Software

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





       
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved