Ping server : System Command « Development « PHP
- PHP
- Development
- System Command
Ping server
<?php
$server = "www.java2s.com";
$count = 3;
echo "<pre>";
system("/bin/ping -c $count $server");
echo "</pre>";
system("killall -q ping");
?>
Related examples in the same category