home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / src / PHP / ping.php3.txt < prev    next >
Encoding:
Text File  |  2002-05-06  |  565 b   |  29 lines

  1. <?php 
  2.  
  3.      //  created by joe lumbroso  
  4.      //  see some other good php3 scripts  
  5.      //  goto http://www.dtheatre.com/scripts 
  6.  
  7. echo  "<font color=\"red\"><blink><b>Pinging</b></blink></font><br>"; 
  8. $to_ping =  "dtheatre.com"; 
  9. $count = 3; 
  10. $psize = 65; 
  11. echo  "   Please be patient, this can take a few moments...\n<br><br>"; 
  12. flush(); 
  13.  
  14. while (1) { 
  15. ?> 
  16. <pre> 
  17. <?  
  18. exec( "ping -c $count -s $psize $to_ping", $list); 
  19. for ($i=0;$i < count($list);$i++) { 
  20.    print $list[$i]. "\n"; 
  21. ?> 
  22. </pre> 
  23. <? 
  24. flush(); 
  25. sleep(3); 
  26. ?>
  27.