Home > Article > Backend Development > PHP implementation of ping_PHP tutorial
// see some other good php3 scripts
// goto http://www.dtheatre.com/scripts
echo "
";
$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>