@@ -42,26 +42,49 @@ Set LIBRARY_PATH.
4242
4343 $ make
4444
45- 2. Write the following desctiption in /etc/php.ini .
45+ 2. Include 'griddb_php_client.php' in PHP .
4646
47- extension=<PHP client library file directory path>
48-
49- 3. Include 'griddb_php_client.php' in PHP.
50-
51- ### How to run sample
47+ ### How to run sample (with Command Line)
5248
5349GridDB Server need to be started in advance.
5450
55- 1. Set LD_LIBRARY_PATH.
51+ 1. Write the following desctiption in /etc/php.ini.
52+
53+ extension=<PHP client library file directory path>
54+
55+ 2. Set LD_LIBRARY_PATH.
5656
5757 export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<C client library file directory path>
5858
59- 2 . The command to run sample
59+ 3 . The command to run sample
6060
6161 $ php sample/sample1.php <GridDB notification address> <GridDB notification port>
6262 <GridDB cluster name> <GridDB user> <GridDB password>
6363 -->Person: name=name02 status=false count=2 lob=ABCDEFGHIJ
6464
65+ ### How to run sample (with Web Browser)
66+
67+ GridDB Server need to be started in advance.
68+
69+ In the case of Web Server: Apache/2.2.15, please use the following steps.
70+
71+ 1. Store griddb_php_client.php and sample/sample1_web.php in /var/www/html.
72+
73+ 2. Store griddb_php_client.so in /usr/lib64/php/modules.
74+
75+ 3. Add extension for griddb_php_client.so in /etc/php.ini.rpmsave or /etc/php/7.2/apache2/php.ini.
76+ extension=griddb_php_client.so
77+
78+ 4. Set LD_LIBRARY_PATH.
79+
80+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<C client library file directory path>
81+
82+ 5. Restart httpd/apache.
83+
84+ 6. In web browser, run : http://localhost:8000/sample1_web.php.
85+
86+ 7. Click submit button after entering address, port, cluster, user and password.
87+
6588## Function
6689
6790(available)
0 commit comments