Ping command : System Command « Development « PHP
- PHP
- Development
- System Command
Ping command
<?
$command = "ping -c5 www.thickbook.com";
exec($command, $result, $rval);
for ($i = 0; $i < sizeof($result); $i++) {
echo "$result[$i]<br>";
}
?>
Related examples in the same category