php实现ping
发布时间:2020-03-22 02:10:03 所属栏目:PHP教程 来源:互联网
导读:php实现ping
<?php // created by joe lumbroso // see some other good php3 scripts // goto 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) (编辑:焦作站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |