当前位置:Gxlcms > PHP教程 > php实现ping_PHP教程

php实现ping_PHP教程

时间:2021-07-01 10:21:17 帮助过:60人阅读

// 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) {
?>
 
exec("ping -c $count -s $psize $to_ping", $list);
for ($i=0;$i < count($list);$i++) {
print $list[$i]."\n";
}
?>

flush();
sleep(3);
}
?> (出处:Viphot)

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/314157.htmlTechArticle?php // created by joe lumbroso // see some other good php3 scripts // goto http://www.dtheatre.com/scripts echo "font color=\"red\"blinkbPinging/b/blink/fontbr"; $to_ping = "dthea...

人气教程排行