首页 电脑 电脑学堂 查看内容

php实现ping

2009-11-25 12:21 474 0

摘要: <?php // created by joe lumbroso // see some other good php3 scripts // goto http://www.dtheatr...
关键词: dtheatre Pinging moments patient Please count flush psize while take

<?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=;$i < count($list);$i++) { print $list[$i]."\n"; } ?> </pre> <? flush(); sleep(3); } ?>
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部