pingserver.php : system « Utility Function « PHP
- PHP
- Utility Function
- system
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