@@ -42,26 +42,49 @@ Set LIBRARY_PATH.
42
42
43
43
$ make
44
44
45
- 2. Write the following desctiption in /etc/php.ini .
45
+ 2. Include 'griddb_php_client.php' in PHP .
46
46
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)
52
48
53
49
GridDB Server need to be started in advance.
54
50
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.
56
56
57
57
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<C client library file directory path>
58
58
59
- 2 . The command to run sample
59
+ 3 . The command to run sample
60
60
61
61
$ php sample/sample1.php <GridDB notification address> <GridDB notification port>
62
62
<GridDB cluster name> <GridDB user> <GridDB password>
63
63
-->Person: name=name02 status=false count=2 lob=ABCDEFGHIJ
64
64
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
+
65
88
## Function
66
89
67
90
(available)
0 commit comments