CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/cwd/usr/share/doc/cpanel-php73-Horde-ElasticSearch-1.0.4/examples/
Upload File :
Current File : //proc/2/cwd/usr/share/doc/cpanel-php73-Horde-ElasticSearch-1.0.4/examples/status.php

<?php
/**
 * Basic example for getting status from ElasticSearch
 *
 * Copyright 2011-2017 Horde LLC (http://www.horde.org/)
 *
 * @author   Chuck Hagenbuch <chuck@horde.org>
 * @license  http://www.horde.org/licenses/bsd BSD
 * @category Horde
 * @package  ElasticSearch
 */

require 'Horde/Autoloader/Default.php';

$client = new Horde_ElasticSearch_Client('http://localhost:9200/', new Horde_Http_Client());
var_dump($client->status());

$twitter = new Horde_ElasticSearch_Index('twitter', $client);
var_dump($twitter->status());

Copyright 2K16 - 2K18 Indonesian Hacker Rulez