Hi
Kindly find my influx details as-
[root@sysadmisc39183 htdocs]# influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB
server management, and monitoring.
Connected to http://localhost:8086 version 0.13.0
InfluxDB shell version: 0.13.0
..
when i am running your script its is an error:- "PHP Fatal error:  Class
'InfluxDB\Options' not found in /opt/apache/htdocs/test1.php on line 22

Fatal error: Class 'InfluxDB\Options' not found in
/opt/apache/htdocs/test1.php on line 22
"
i am unable to trance options class so please help in for the same...

On Thu, Sep 8, 2016 at 1:30 PM, Devendra Choudhary <
[email protected]> wrote:

> [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! ([email protected]) Add cleanup rule
> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3DN0%252BKPLaUM6igO9UOew11k4ayiKqdxL3UjGTHBVEmn0E%253D%26token%3DPs%252F0gTsWsXRaBOdi8xBzD5U%252FlND61j3qD6PYPX5C4cYwo7MMqMguaeFlAN%252BXZNoflWd4LtEYeNRts8zsg%252FtqD6%252FETe8mX9v%252BIMjExJ8PMaCTGtx099aGJBWyDJqFxGKjqqbBFzr3ik2phK2iSUPZBA%253D%253D&tc_serial=26716748412&tc_rand=468162707&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
> | More info
> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=26716748412&tc_rand=468162707&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>
>
> Hi,
> I am very new to influxdb and i wanted to display data from influxdb using
> php.
> kindly suggest me the full script for the same....
> i will great thankful to you....
>
> On Wednesday, October 7, 2015 at 2:29:39 PM UTC+5:30, [email protected]
> wrote:
>>
>> Hello Everyone,
>>
>> First of all I like to Thank Paul and all the developers who have worked
>> hard in bring the wonderful InfluxDB. I am using it from quite a number of
>> days and i am really glad that it existed and is open source.
>>
>> Coming to the point, i am trying to connect influxDB with PHP and i can
>> say i was successful all thanks to Corley for developing PHP api. I am
>> finding difficult in setting Database on which my query has to be applied
>> on.
>>
>> Below i have mentioned my sample PHP code i am working on, Kindly let me
>> know how to choose the specific database from the available list of
>> databases.?
>>
>>
>> <!DOCTYPE html>
>> <html>
>> <body>
>>
>> <h1>My first PHP page</h1>
>>
>> <?php
>> use DateTime;
>> use DateTimeZone;
>> use InfluxDB\Options;
>> use InfluxDB\Client;
>> use InfluxDB\Adapter\GuzzleAdapter;
>> use GuzzleHttp\Client as GuzzleHttpClient;
>> use InfluxDB\Integration\Framework\TestCase as InfluxDBTestCase;
>> require 'composertest/vendor/autoload.php';
>> error_reporting(E_ALL);
>> ini_set('display_errors', 'on');
>> $http = new \GuzzleHttp\Client();
>>
>> $options = new Options();
>> $options->setUsername("abhi");
>> $options->setPassword("1234");
>>
>> $adapter = new GuzzleAdapter($http, $options);
>> $client = new Client($adapter);
>>
>>
>> //I need to select database "Test"
>>
>> var_dump($client->query('select * from "app-search"'));
>> ?>
>>
>> </body>
>> </html>
>>
>> --
> Remember to include the InfluxDB version number with all issue reports
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "InfluxDB" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/influxdb/0NRcZBOZciY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/influxdb.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/influxdb/fdfa0133-a0cb-4994-a4a1-9daf8cae7e7c%40googlegroups.com
> <https://groups.google.com/d/msgid/influxdb/fdfa0133-a0cb-4994-a4a1-9daf8cae7e7c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/CAGJnc_EfoA2OyB076SUhvP%2BuvLZocuQn9Y2YdQQFf0x29JhA%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to