Net_Ping
[ class tree: Net_Ping ] [ index: Net_Ping ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2.   require_once "Net/Ping.php";
  3.   $ping Net_Ping::factory();
  4.   if(PEAR::isError($ping)) {
  5.     echo $ping->getMessage();
  6.   else {
  7.     $ping->setArgs(array('count' => 2));
  8.     var_dump($ping->ping('example.com'));
  9.   }
  10. ?>

Documentation generated on Mon, 11 Mar 2019 15:35:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.