首頁 >php教程 >php手册 >php实现ping (转)

php实现ping (转)

WBOY
WBOY原創
2016-06-21 09:12:471282瀏覽

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

echo "Pinging
";
$to_ping = "dtheatre.com";
$count = 3;
$psize = 65;
echo "   Please be patient, this can take a few moments...\n

";
flush();

while (1) {
?>
<br> <br>exec("ping -c $count -s $psize $to_ping", $list);<br>for ($i=0;$i    print $list[$i]."\n";<br>}<br>?><br>


flush();
sleep(3);
}
?>



陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn