{"id":50727,"date":"2021-02-03T00:00:00","date_gmt":"2021-02-03T08:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/"},"modified":"2025-11-14T07:54:24","modified_gmt":"2025-11-14T15:54:24","slug":"data-collection-with-griddb-and-php","status":"publish","type":"post","link":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/","title":{"rendered":"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6"},"content":{"rendered":"<p>\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u30b7\u30f3\u30d7\u30eb\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u306a\u72b6\u6cc1\u3092\u60f3\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305a\u6700\u521d\u306b\u30b7\u30ca\u30ea\u30aa\u3092\u660e\u78ba\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30b7\u30ca\u30ea\u30aa<\/h2>\n<p>\u9078\u3070\u308c\u305f\u4eba\u3005\u306e\u671d\u98df\u3001\u663c\u98df\u3001\u5915\u98df\u306b\u95a2\u9023\u3059\u308b\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u4eba\u9593\u306e\u6804\u990a\u306b\u95a2\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u5404\u4eba\u306b\u306f\u56fa\u6709\u306eID\u304c\u3042\u308a\u3001ID\u3001\u98df\u4e8b\u306e\u7a2e\u985e\u3001\u98df\u4e8b\u306b\u542b\u307e\u308c\u308b\u98df\u54c1\u306a\u3069\u306e\u8a73\u7d30\u3092\u3001\u6bce\u98df\u524d\u306b\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u30d5\u30a9\u30fc\u30e0\u306b\u8a18\u9332\u3059\u308b\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u6295\u7a3f\u3055\u308c\u305f\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u81ea\u52d5\u7684\u306b\u53d6\u5f97\u3059\u308b\u305f\u3081\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u6642\u9593\u3092\u660e\u793a\u7684\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306aHTML\u30d5\u30a9\u30fc\u30e0\u3068\u3001PHP\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304a\u3088\u3073GridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u8868\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u306b\u3069\u306e\u3088\u3046\u306a\u60c5\u5831\u3092\u5165\u529b\u3059\u3079\u304d\u304b\u306b\u3064\u3044\u3066\u306e\u9069\u5207\u306a\u30a2\u30a4\u30c7\u30a2\u3092\u4e0e\u3048\u3066\u304f\u308c\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/ja\/wp-content\/uploads\/2021\/07\/Screenshot_2.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/ja\/wp-content\/uploads\/2021\/07\/Screenshot_2.png\" alt=\"\" width=\"636\" height=\"244\" class=\"aligncenter size-full wp-image-27240\" \/><\/a><\/p>\n<p>\u3055\u3066\u3001\u6b21\u306f\u5b9f\u88c5\u306b\u79fb\u308a\u307e\u3057\u3087\u3046\u3002\u5b9f\u88c5\u306f\u4e3b\u306b2\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li>HTML\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>GridDB\u3092\u4f7f\u3063\u305fPHP\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u958b\u767a\u3059\u308b<\/li>\n<\/ol>\n<h2>HTML\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>ID\u3001\u98df\u4e8b\u3001\u98df\u4e8b\u306e\u7a2e\u985e\u3092\u5165\u529b\u3059\u308b\u7c21\u5358\u306aHTML\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fcID\u3068\u98df\u4e8b\u306e\u8a73\u7d30\u306f\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3067\u5165\u529b\u3057\u3001\u98df\u4e8b\u306e\u7a2e\u985e\u306f\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u5165\u529b\u3057\u307e\u3059\u3002\u5b8c\u5168\u306aHTML\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30d5\u30a9\u30fc\u30e0\u306e\u4f5c\u6210\u306b\u306fBootstrap 4\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-html\">\n&lt;!DOCTYPE html&gt; &lt;html lang=\"en\"&gt; &lt;head&gt; &lt;meta charset=\"UTF-8\" \/&gt; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/&gt; &lt;meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\" \/&gt; &lt;title&gt;Static Template&lt;\/title&gt; &lt;link rel=\"stylesheet\" href=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/4.0.0\/css\/bootstrap.min.css\" integrity=\"sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW\/dAiS6JXm\" crossorigin=\"anonymous\" \/&gt; &lt;\/head&gt; &lt;body&gt; &lt;h2 style=\"text-align: center;\"&gt;Data Collection For Research&lt;\/h2&gt; &lt;form style=\"margin: 20px;\"&gt; &lt;div class=\"form-group\"&gt; &lt;label for=\"userid\"&gt;ID&lt;\/label&gt; &lt;input type=\"text\" class=\"form-control\" id=\"userid\" aria-describedby=\"userid\" placeholder=\"Enter Your ID\" \/&gt; &lt;small id=\"userid\" class=\"form-text text-muted\" &gt;Please enter the unique ID that given by the organization.&lt;\/small &gt; &lt;\/div&gt; &lt;div class=\"form-group\"&gt; &lt;label for=\"mealtype\"&gt;Meal Type&lt;\/label&gt; &lt;br \/&gt; &lt;div class=\"form-check form-check-inline\" is=\"mealtype\"&gt; &lt;input class=\"form-check-input\" type=\"radio\" name=\"breakfast\" id=\"breakfast\" value=\"breakfast\" \/&gt; &lt;label class=\"form-check-label\" for=\"breakfast\"&gt;Breakfast&lt;\/label&gt; &lt;\/div&gt; &lt;div class=\"form-check form-check-inline\"&gt; &lt;input class=\"form-check-input\" type=\"radio\" name=\"lunch\" id=\"lunch\" value=\"lunch\" \/&gt; &lt;label class=\"form-check-label\" for=\"lunch\"&gt;Lunch&lt;\/label&gt; &lt;\/div&gt; &lt;div class=\"form-check form-check-inline\"&gt; &lt;input class=\"form-check-input\" type=\"radio\" name=\"dinner\" id=\"dinner\" value=\"dinner\" \/&gt; &lt;label class=\"form-check-label\" for=\"dinner\"&gt;Dinner&lt;\/label&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"form-group\"&gt; &lt;label for=\"meal\"&gt;Meal&lt;\/label&gt; &lt;input type=\"text\" class=\"form-control\" id=\"meal\" aria-describedby=\"meal\" placeholder=\"Enter Your Main meal\" \/&gt; &lt;\/div&gt; &lt;button type=\"submit\" id=\"submitBtn\" class= \"btn btn-primary\"&gt;Submit&lt;\/button&gt; &lt;\/form&gt; &lt;\/body&gt; &lt;\/html&gt;\n<\/code><\/pre>\n<\/div>\n<p>\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2 style=\"text-align: center;\">\n  Data Collection For Research<br \/>\n<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u5b9f\u88c5\u306e\u7b2c2\u6bb5\u968e\u306b\u79fb\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>GridDB\u3092\u4f7f\u3063\u305fPHP\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u958b\u767a\u3059\u308b<\/h2>\n<p>\u3053\u308c\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u90e8\u5206\u306e\u958b\u767a\u306f\u7d42\u308f\u308a\u307e\u3057\u305f\u3002\u6b21\u306b\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u958b\u767a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001PHP\u7528\u306eGridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30fb\u30b3\u30cd\u30af\u30bf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30b3\u30cd\u30af\u30bf\u306f\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f37\u4ee5\u964d\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306fPHP 7\u4ee5\u4e0a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001PHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eGithub\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code>git clone https:\/\/github.com\/griddb\/php_client.git<\/code><\/p>\n<p>PHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u305f\u3081\u306b\u306f\u3001GridDB C\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30d3\u30eb\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/griddb.net\/ja\/blog\/using-griddbs-cpythonruby-apis\/#c-intro\">\u3053\u306e\u30d6\u30ed\u30b0<\/a>\u3092\u8aad\u3081\u3070\u3001GridDB C\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u3088\u304f\u308f\u304b\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u306e\u5f8c\u3001<a href=\"https:\/\/github.com\/griddb\/php_client\">PHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eGitHub\u30da\u30fc\u30b8<\/a>\u306eREADME\u30da\u30fc\u30b8\u306e\u6307\u793a\u306b\u5f93\u3063\u3066\u3001PHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u306e\u624b\u9806\u3067\u3001PHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002\u305d\u308c\u3067\u306f\u3001PHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066GridDB\u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>PHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3088\u308bGridDB\u3078\u306e\u63a5\u7d9a<\/h2>\n<p>PHP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067 GridDB \u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u5358\u306b griddb_php_client \u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u3060\u3051\u3067\u3059\u3002PHP\u3067\u306eGridDB\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306fStoreFactory\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u3001\u63a5\u7d9a\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-php\">\n&lt;?php\ninclude('griddb_php_client.php');\n$factory = StoreFactory::get_default();\ntry {\n    $gridstore = $factory->get_store(\n        array(\n            \"notificationAddress\" => $argv[1],\n            \"notificationPort\" => $argv[2],\n            \"clusterName\" => $argv[3],\n            \"user\" => $argv[4],\n            \"password\" => $argv[5]\n        )\n    );\n} catch (GSException $e){\n    echo($e->what().\"n\");\n    echo($e->get_code().\"n\");\n}\n?&gt;\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u884c\u3063\u305f\u3053\u3068\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f GridDB \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u521d\u671f\u5316\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001\u901a\u77e5\u30dd\u30fc\u30c8\u3001\u30af\u30e9\u30b9\u30bf\u540d\u3001\u30e6\u30fc\u30b6\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3057\u3001\u4f55\u304b\u8a18\u8ff0\u3057\u3066\u3044\u306a\u3044\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u305d\u306e\u30a8\u30e9\u30fc\u3068\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u7c21\u5358\u3067\u3057\u3087\u3046\uff1f<\/p>\n<h2>\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210<\/h2>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001\u30b0\u30ea\u30c3\u30c9\u30b9\u30c8\u30a2\u306e\u521d\u671f\u5316\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u306f\u3001\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5192\u982d\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u306f\u30e6\u30fc\u30b6\u30fcID\u3001\u98df\u4e8b\u306e\u7a2e\u985e\u3001\u98df\u4e8b\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u306e4\u3064\u306e\u5c5e\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u88c5\u3067\u306f\u3001put_container\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u521d\u306e\u30ab\u30e9\u30e0\u306f\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u30b9\u30ad\u30fc\u30de\u3092\u4f5c\u6210\u3057\u305f\u5f8c\u3001\u30c7\u30fc\u30bf\u3092\u884c\u3068\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u306b\u633f\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-php\">\n$ts = $gridstore->put_container(\n    \"point01\",\n    array(array(\"timestamp\" => GS_TYPE_TIMESTAMP),\n    array(\"userid\" => GS_TYPE_STRING),\n    array(\"mealtype\" => GS_TYPE_STRING)),\n    array(\"meal\" => GS_TYPE_STRING)),\n    GS_CONTAINER_TIME_SERIES\n);\n<\/code><\/pre>\n<\/div>\n<p>\u5fc5\u9808\u5c5e\u6027\u3092\u6301\u3064\u30b9\u30ad\u30fc\u30de\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u5c5e\u6027\u306e\u30bf\u30a4\u30d7\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002timestamp\u5c5e\u6027\u306e\u578b\u306fGS_TYPE_TIMESTAMP\u3067\u3059\u3002\u4ed6\u306e\u5c5e\u6027\u306b\u306fGS_TYPE_STRING\u30bf\u30a4\u30d7\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5fc5\u8981\u306a\u5c5e\u6027\u306b\u5fdc\u3058\u3066\u3001GS_TYPE_DOUBLE\u3084GS_TYPE_INTEGER\u306a\u3069\u3001\u4efb\u610f\u306e\u30bf\u30a4\u30d7\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u884c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3001\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305d\u306e\u65b9\u6cd5\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002\u307e\u305a\u6700\u521d\u306b\u3001\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-php\">\n$row = $ts->create_row();\n$row->set_field_by_timestamp(0, TimestampUtils::current());\n$row->set_field_by_string(1, 'GD1001');\n$row->set_field_by_string(2, 'dinner');\n$row->set_field_by_string(3, 'hoppers');\n$ts->put_row($row);\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u3053\u3067\u884c\u3063\u305f\u3053\u3068\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u3001create_row\u30e1\u30bd\u30c3\u30c9\u3067\u65b0\u3057\u3044\u884c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u91cd\u8981\u306a\u3053\u3068\u306f\u3001\u30b9\u30ad\u30fc\u30de\u3092\u4f5c\u6210\u3057\u305f\u9806\u756a\u306b\u3059\u3079\u3066\u306e\u5024\u3092\u884c\u306b\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30b3\u30fc\u30c9\u3092\u898b\u308b\u3068\u308f\u304b\u308b\u3088\u3046\u306b\u30010,1,2,3\u306f\u5217\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u6b21\u306f\u3001HTML\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u9001\u4fe1\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001\u9001\u4fe1\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30af\u30ea\u30c3\u30af\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u5909\u6570\u3092\u5ba3\u8a00\u3057\u3066\u3001\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u9001\u3089\u308c\u3066\u304d\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u524d\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u884c\u3063\u305f\u3088\u3046\u306b\u3001\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-php\">\nif(isset($_POST[\"submitBtn\"]) && $_POST[\"submitBtn\"]!=\"\"){\n    $userid=$_POST[\"userid\"];\n    $mealtype=$_POST[\"mealtype\"];\n    $meal=$_POST[\"meal\"];\n\n    $row = $ts->create_row();\n    $row->set_field_by_timestamp(0, TimestampUtils::current());\n    $row->set_field_by_string(1, $userid);\n    $row->set_field_by_string(2, $mealtype);\n    $row->set_field_by_string(3, $meal);\n    $ts->put_row($row);  \n<\/code><\/pre>\n<\/div>\n<p>\u305d\u3053\u3067\u3001PHP\u3067GridDB\u3092\u4f7f\u3063\u3066\u30d5\u30a9\u30fc\u30e0\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u73fe\u5728\u306e PHP \u30da\u30fc\u30b8\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b $_POST \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3054\u89a7\u306e\u3068\u304a\u308a\u3001\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u884c\u5f62\u5f0f\u3067\u4fdd\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a9\u30fc\u30e0\u3092\u9001\u4fe1\u3057\u305f\u6642\u9593\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u306f\u81ea\u52d5\u7684\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002GridDB\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308bPHP\u3067\u306f\u3001\u8907\u6570\u306e\u5206\u6790\u65b9\u6cd5\u3067\u30c7\u30fc\u30bf\u3092\u5206\u6790\u30fb\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u554f\u3044\u5408\u308f\u305b<\/h2>\n<p>\u3053\u306e\u30d1\u30fc\u30c8\u3067\u306f\u3001\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u554f\u3044\u5408\u308f\u305b\u3092\u884c\u3044\u3001\u8981\u6c42\u306b\u5fdc\u3058\u3066\u30c7\u30fc\u30bf\u3092\u5206\u6790\u3059\u308b\u304b\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u3079\u3066\u306e\u671d\u98df\u306e\u98df\u4e8b\u5185\u5bb9\u3092\u628a\u63e1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u5358\u7d14\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u554f\u3044\u5408\u308f\u305b\u3066\u3001\u95a2\u9023\u3059\u308b\u3059\u3079\u3066\u306e\u8a73\u7d30\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u30af\u30a8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><code>$sql = \"SELECT * FROM point01 WHERE mealtype='breakfast'\";<\/code><\/p>\n<p>\u6b21\u306b\u884c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><code>$row = $ts-&gt;create_row();<\/code><\/p>\n<p>\u3053\u308c\u3067\u3001\u6b21\u306e\u3088\u3046\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u7d50\u679c\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3001\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u8a73\u7d30\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-php\">\n$rs = $query->fetch($allow_update);\n\nwhile ($rs->has_next()){\n    $rs->get_next($row);\n    $userid = $row->get_field_as_string(1);\n    $meal = $row->get_field_as_string(3);\n    echo(\"UserId = $userid Meal = $meal\");\n}  \n<\/code><\/pre>\n<\/div>\n<p>\u5148\u306b\u521d\u671f\u5316\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3063\u3066\u5fc5\u8981\u306a\u30ab\u30e9\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304a\u308a\u3001\u3053\u308c\u3089\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f0\u30d9\u30fc\u30b9\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><code>get_field_as_string(1)<\/code>\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u306d\u3002\u3053\u3053\u3067\u30011\u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e2\u756a\u76ee\u306e\u5217\u3067\u3059\u3002\u3064\u307e\u308a\u3001UserID\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30c3\u30b3\u3044\u3044\u3067\u3057\u3087\uff1f<\/p>\n<p>\u3067\u306f\u3001\u5225\u306e\u30af\u30a8\u30ea\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u7279\u5b9a\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u306e\u5f8c\u306b\u9001\u4fe1\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u98df\u4e8b\u306e\u8a73\u7d30\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30af\u30a8\u30ea\u306f\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p><code>SELECT * FROM point01 WHERE timestamp &gt; 05012019 00:00:00<\/code><\/p>\n<p>\u305d\u3046\u3059\u308c\u3070\u3001\u5148\u307b\u3069\u306e\u4f8b\u306e\u3088\u3046\u306b\u3001\u5fc5\u8981\u306a\u60c5\u5831\u3092\u3059\u3079\u3066\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u3053\u3067\u306f\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u306e\u5024\u3092\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u3044\u307e\u3059\u3002\u8907\u6570\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u306b\u5bfe\u3057\u3066\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306b\u7c21\u5358\u306a\u5909\u66f4\u3092\u52a0\u3048\u308b\u3060\u3051\u3067\u3001\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-php\">\nfunction getMeal($timestamp){\n    $sql = \"SELECT * FROM point01 WHERE timestamp > $timestamp\";\n    $row = $ts->create_row();\n    $rs = $query->fetch($allow_update);\n\n    while ($rs->has_next()){\n        $rs->get_next($row);\n        $userid = $row->get_field_as_string(1);\n        $mealtype = $row->get_field_as_string(2);\n        $meal = $row->get_field_as_string(3);\n        echo(\"UserId = $userid Meal = $meal MealType = $mealtype\");\n    }  \n}       \n<\/code><\/pre>\n<\/div>\n<p>\u540c\u69d8\u306b\u3001\u4ed6\u306e\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u5206\u6790\u30fb\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u7d50\u5408\u3084AVG\u3001COUNT\u306a\u3069\u306e\u96c6\u8a08\u65b9\u6cd5\u3092\u542b\u3080\u8907\u96d1\u306a\u30af\u30a8\u30ea\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3055\u3066\u3001\u5927\u4f53\u3053\u3093\u306a\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b\u3002\u4eca\u56de\u306f\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u3092\u76ee\u7684\u3068\u3057\u3066PHP\u3067GridDB\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u306f\u3001\u591a\u304f\u306e\u7814\u7a76\u3084\u30b7\u30b9\u30c6\u30e0\u3067\u6709\u7528\u306a\u30b7\u30f3\u30d7\u30eb\u306a\u30b7\u30ca\u30ea\u30aa\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u305f\u65b9\u6cd5\u3084\u30c6\u30af\u30cb\u30c3\u30af\u306f\u3001\u95a2\u9023\u3059\u308b\u3042\u3089\u3086\u308b\u30b7\u30ca\u30ea\u30aa\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002GridDB\u306ePHP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3046\u306e\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002GridDB\u3067\u5229\u7528\u3067\u304d\u308b\u591a\u304f\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30fc\u3084\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u8003\u616e\u3059\u308b\u3068\u3001GridDB\u306f\u3059\u3079\u3066\u306ePHP\u958b\u767a\u8005\u304c\u30cf\u30a4\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3082\u306e\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u30b7\u30f3\u30d7\u30eb\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30c7 [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":49061,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50727","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6 | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/data-collection-with-griddb-and-php\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6 | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/data-collection-with-griddb-and-php\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-03T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:54:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2018\/09\/blog_title_30.png\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"490\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"griddb-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6\",\"datePublished\":\"2021-02-03T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:54:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/\"},\"wordCount\":90,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/\",\"name\":\"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6 | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"datePublished\":\"2021-02-03T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:54:24+00:00\",\"description\":\"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"contentUrl\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"width\":870,\"height\":490},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\",\"name\":\"griddb-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"caption\":\"griddb-admin\"},\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6 | GridDB: Open Source Time Series Database for IoT","description":"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/data-collection-with-griddb-and-php\/","og_locale":"ja_JP","og_type":"article","og_title":"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6 | GridDB: Open Source Time Series Database for IoT","og_description":"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/data-collection-with-griddb-and-php\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2021-02-03T08:00:00+00:00","article_modified_time":"2025-11-14T15:54:24+00:00","og_image":[{"width":870,"height":490,"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2018\/09\/blog_title_30.png","type":"image\/png"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"griddb-admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/"},"author":{"name":"griddb-admin","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6","datePublished":"2021-02-03T08:00:00+00:00","dateModified":"2025-11-14T15:54:24+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/"},"wordCount":90,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/","name":"GridDB\u3068PHP\u306b\u3088\u308b\u30c7\u30fc\u30bf\u53ce\u96c6 | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","datePublished":"2021-02-03T08:00:00+00:00","dateModified":"2025-11-14T15:54:24+00:00","description":"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u7814\u7a76\u306e\u5927\u534a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u53ce\u96c6\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3068GridDB\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u53ce\u96c6\u30bf\u30b9\u30af\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3059\u308b","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/data-collection-with-griddb-and-php\/#primaryimage","url":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","contentUrl":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","width":870,"height":490},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233","name":"griddb-admin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","caption":"griddb-admin"},"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/comments?post=50727"}],"version-history":[{"count":1,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50727\/revisions"}],"predecessor-version":[{"id":51564,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50727\/revisions\/51564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/media\/49061"}],"wp:attachment":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/media?parent=50727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/categories?post=50727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/tags?post=50727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}