pingserver.php : system « Utility Function « PHP






pingserver.php

 
<?php

   $server = "www.example.com";

   $count = 3;

   echo "<pre>";
   system("/bin/ping -c $count $server");
   echo "</pre>";

   system("killall -q ping");

?>
  
  








Related examples in the same category

1.Calling the man Command
2.Output man page
3.portscanner.php