PHP头条
热点:

PHP实现Ping


<?php

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);
}
?>

www.phpzy.comtrue/php/9388.htmlTechArticlePHP实现Ping ?php echo font color=redblinkbPinging/b/blink/fontbr; $to_ping = dtheatre.com; $count = 3; $psize = 65; echo Please be patient, this can take a few moments...nbrbr; flush(); while (1) { ? pre ? exec(ping -c $count -s $psize $t...

相关文章

    暂无相关文章
相关频道:

PHP之友评论

今天推荐