赞助广告 赞助广告
  当前位置:网络学院图形图像Freehand → php实现ping
php实现ping
日期:2001年6月22日 作者:不详 人气: 查看:[大字体 中字体 小字体]
<?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);
}
?>

(出处:不详 )

相关文章:
 
相关软件:
 
  特别推荐
  热点TOP10