Net_Ping::ping() -- executes a ping command
Description
Executes a ping command
Return value
string -
the return message of the ping command
Note
This function can not be called
statically.
Example
Example 38-1. Sending a ping request <?php
require_once 'Net/Ping.php' ;
$ping = new Net_Ping;
$ping->setArgs(array("count" => 5,
"size" => 32,
"ttl" => 512
)
);
var_dump($ping->ping("example.com"));
?> |
|