Home  >  Article  >  Backend Development  >  PHP implementation of ping_PHP tutorial

PHP implementation of ping_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:10:48896browse


// 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 < count($list);$i++) { <br>print $list[$i]."n"; <br>} <br>?> <br>

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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn