ping() public static method

Ping a server and get the status and time.
public static ping ( string $host ) : array
$host string
return array
Ejemplo n.º 1
0
 /**
  * Admin Settings Page.
  */
 public static function getSettings()
 {
     $hostsStatus = [];
     foreach (Config::getHosts() as $host) {
         $hostsStatus[] = Elasticsearch::ping($host);
     }
     require ESI_PATH . '/views/admin/settings.php';
 }