Skip to content

Commit 7db1822

Browse files
committed
update for 0.8
1 parent 2899305 commit 7db1822

File tree

1 file changed

+18
-37
lines changed

1 file changed

+18
-37
lines changed

README.md

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@ GridDB PHP Client
22

33
## Overview
44

5-
GridDB PHP Client is developed using GridDB C Client and [SWIG](http://www.swig.org/) (Simplified Wrapper and Interface Generator).
5+
GridDB PHP Client is developed using GridDB C Client and [SWIG](http://www.swig.org/) (Simplified Wrapper and Interface Generator).
66

7-
(Additional information)
8-
There is [PHP Client package on Packagist repository](https://packagist.org/packages/griddb/php-client) .
97

108
## Operating environment
119

1210
Building of the library and execution of the sample programs have been checked in the following environment.
1311

14-
OS: CentOS 7.4(x64)
12+
OS: CentOS 7.8(x64)
1513
SWIG: 4.0.0
1614
GCC: 4.8.5
17-
PHP: 7
18-
GridDB Server: 4.2 (CE)
19-
GridDB C Client: 4.2 (CE)
15+
PHP: 7.4.7
16+
GridDB Server: 4.5 (CE)
17+
GridDB C Client: 4.5 (CE)
2018

2119
## QuickStart
2220
### Preparations
@@ -29,17 +27,17 @@ Install SWIG as below.
2927
$ ./configure
3028
$ make
3129
$ sudo make install
32-
30+
3331
Note: If CentOS, you might need to install pcre in advance.
3432
$ sudo yum install pcre2-devel.x86_64
3533

36-
Install PHP7 and GridDB C Client.
34+
Install PHP7.4.7 and GridDB C Client.
3735

38-
Set LIBRARY_PATH.
36+
Set LIBRARY_PATH.
3937

4038
export LIBRARY_PATH=$LIBRARY_PATH:<C client library file directory path>
4139

42-
### Build and Run
40+
### Build and Run
4341

4442
1. Execute the command on project directory.
4543

@@ -69,22 +67,21 @@ GridDB Server need to be started in advance.
6967

7068
GridDB Server need to be started in advance.
7169

72-
In the case of Web Server: Apache/2.2.15, please use the following steps.
73-
70+
In the case of Web Server: Apache/2.4.6, please use the following steps.
71+
7472
1. Store griddb_php_client.php and sample/sample1_web.php in /var/www/html.
7573

7674
2. Store griddb_php_client.so in /usr/lib64/php/modules.
7775

78-
3. Add extension for griddb_php_client.so in /etc/php.ini.rpmsave or /etc/php/7.2/apache2/php.ini.
79-
extension=griddb_php_client.so
76+
3. Add extension for griddb_php_client.so in /etc/php.ini
8077

8178
4. Set LD_LIBRARY_PATH.
8279

8380
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<C client library file directory path>
8481

8582
5. Restart httpd/apache.
8683

87-
6. In web browser, run : http://localhost:8000/sample1_web.php.
84+
6. In web browser, run : http://localhost/sample1_web.php.
8885

8986
7. Click submit button after entering address, port, cluster, user and password.
9087

@@ -102,37 +99,21 @@ In the case of Web Server: Apache/2.2.15, please use the following steps.
10299
- timeseries-specific function like gsAggregateTimeSeries, gsQueryByTimeSeriesSampling in C client
103100
- trigger, affinity
104101

105-
Please refer to the following files for more detailed information.
102+
Please refer to the following files for more detailed information.
106103
- [PHP Client API Reference](https://griddb.github.io/php_client/PHPAPIReference.htm)
107104

108105
About API:
109106
- When an error occurs, an exception GSException is thrown.
110-
- Based on C Client API. Please refer to C Client API Reference for the detailed information.
111-
* [API Reference](https://griddb.github.io/griddb_nosql/manual/GridDB_API_Reference.html)
112-
* [API Reference(Japanese)](https://griddb.github.io/griddb_nosql/manual/GridDB_API_Reference_ja.html)
113-
114-
Note:
115-
1. The current API might be changed in the next version. e.g. ContainerInfo()
116-
2. References to objects obtained using the get method described below must be referenced prior to executing the methods. When referencing after the execution of the get methods, please copy the basic data type such as string from the object and reference it to the copied data.
117-
- get_row_xxx
118-
- get_partition_xxx
119-
- get_container_info
120-
121-
Please refer to the following note from C Client API Reference document for detailed information of the reason behind the implementation:
122-
123-
"In order to store the variable-length data such as string or array, it uses a temporary memory area.
124-
This area is valid until this function or similar functions which use a temporary memory area.
125-
The behavior is undefined when the area which has been invalidated is accessed."
126107

127108
## Community
128109

129-
* Issues
130-
Use the GitHub issue function if you have any requests, questions, or bug reports.
131-
* PullRequest
110+
* Issues
111+
Use the GitHub issue function if you have any requests, questions, or bug reports.
112+
* PullRequest
132113
Use the GitHub pull request function if you want to contribute code.
133114
You'll need to agree GridDB Contributor License Agreement(CLA_rev1.1.pdf).
134115
By using the GitHub pull request function, you shall be deemed to have agreed to GridDB Contributor License Agreement.
135116

136117
## License
137-
118+
138119
GridDB PHP Client source license is Apache License, version 2.0.

0 commit comments

Comments
 (0)