首页 > php框架 > PHP实现Ping

PHP实现Ping

<?php

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


文章链接:http://www.phprm.com/frame/php1004861.html

随便收藏,请保留本文地址!

标签:none

发表留言