侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

php实现ping

2023-12-28 星期四 / 0 评论 / 0 点赞 / 58 阅读 / 730 字

<?php // created by joe lumbroso // see some other good php3 scripts // goto http://www.dtheatre.com/scripts e


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

广告 广告

评论区