{"id":8271,"date":"2019-10-23T17:31:44","date_gmt":"2019-10-23T08:31:44","guid":{"rendered":"https:\/\/itport.cloud\/?p=8271"},"modified":"2019-10-23T17:31:45","modified_gmt":"2019-10-23T08:31:45","slug":"post-8271","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=8271","title":{"rendered":"(\u7b2c3\u56de)PHP\u3067SNS\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n\n\n\n<p><a href=\"#php3-1\">\u306f\u3058\u3081\u306b<\/a><br><a href=\"#php3-2\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8868\u793a\u65b9\u6cd5<br><\/a><a href=\"#php3-3\">\u6295\u7a3f\u5185\u5bb9\u306e\u8868\u793a<br><\/a><a href=\"#php3-4\">\u30d5\u30a1\u30a4\u30eb\u306e\u5206\u5272<br><\/a><a href=\"#php3-5\">\u898b\u6804\u3048\u6539\u5584<br><\/a><a href=\"#php3-6\">\u6b21\u56de\u4e88\u544a<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"php3-1\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u524d\u56de\u306f\u6295\u964d\u3057\u305f\u5185\u5bb9\u304cDB\u306b\u4fdd\u5b58\u3055\u308c\u308b\u307e\u3067\u306e\u6d41\u308c\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306f\u3001\u6295\u7a3f\u5185\u5bb9\u3092\u8868\u793a\u3059\u308b\u6a5f\u80fd\u3068\u3001\u898b\u6804\u3048\u306b\u95a2\u3057\u3066\u3001\u3082\u3046\u5c11\u3057\u898b\u3084\u3059\u3044\u3082\u306e\u306b\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"php3-2\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8868\u793a\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u524d\u56de\u306e\u6700\u5f8c\u306b\u30a8\u30e9\u30fc\u304c\u3042\u3063\u305f\u969b\u306b\u3001\u30bf\u30a4\u30c8\u30eb\u306e\u4e0a\u306b\u3001var_dump\u95a2\u6570\u3067\u53d6\u5f97\u3057\u305f\u30a8\u30e9\u30fc\u5185\u5bb9\u3092<br>\u8868\u793a\u3059\u308b\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br>\u3053\u308c\u3067\u3082\u30a8\u30e9\u30fc\u5185\u5bb9\u306f\u4f1d\u308f\u308b\u306e\u3067\u3059\u304c\u3001\u898b\u6804\u3048\u306e\u554f\u984c\u3068\u3082\u3046\u5c11\u3057\u30b7\u30f3\u30d7\u30eb\u306b\u5185\u5bb9\u3092\u304a\u4f1d\u3048\u3067\u304d\u308b\u65b9\u6cd5\u304c\u3042\u308b\u306e\u3067\u3001<br>\u305d\u3061\u3089\u3092\u307e\u305a\u5b9f\u88c5\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ \u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u51e6\u7406\u3092\u8ffd\u52a0\n<form action=\"connectbbs.php\" method=\"post\">\n<?php if (count($errors)): ?>\n<ul class=\"error_list\">\n    <?php foreach ($errors as $error): ?>\n    <li>\n        <?php echo htmlspecialchars($error, ENT_QUOTES, 'UTF-8') ?>\n    <\/li>\n    <?php endforeach; ?>\n<\/ul>\n<?php endif; ?>\n\u3000\u540d\u524d:\u3000<input type=\"text\" name=\"name\" \/><br>\n\u3000\u5185\u5bb9:\u3000<input type=\"text\" name=\"comment\" size=\"60\" \/><br>\n\u3000<input type=\"submit\" name=\"submit\" value=\"\u9001\u4fe1\" \/>\n<\/form>\n<\/pre><\/div>\n\n\n<p>\u307e\u305a\u4e0a\u90e8\u306b\u51fa\u3066\u3044\u305f\u3082\u306e\u3092\u30bf\u30a4\u30c8\u30eb\u3068\u6295\u7a3f\u30d5\u30a9\u30fc\u30e0\u306e\u9593\u306b\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br>form\u30bf\u30b0\u306e\u4e2d\u306b\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u3067\u3001\u4e0a\u8a18\u3092\u5b9f\u73fe\u3055\u305b\u307e\u3059\u3002<br>\u30b3\u30fc\u30c9\u306e\u5185\u5bb9\u3068\u3057\u3066\u306f\u3001\u30a8\u30e9\u30fc\u5185\u5bb9\u3092\u914d\u5217\u306b\u5165\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3061\u3089\u3092\u30ea\u30b9\u30c8\u5f62\u5f0f\u3067\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br>\u51fa\u529b\u306e\u7d50\u679c\u304c\u4e0b\u8a18\u753b\u50cf\u306b\u306a\u308a\u307e\u3059\uff08\u540d\u524d\u3068\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u305b\u305a\u306b\u6295\u7a3f\u3057\u3066\u307f\u307e\u3057\u305f\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2-1024x538.png\" alt=\"\" class=\"wp-image-8276\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2-1024x538.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2-300x158.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2-768x404.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2-450x237.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2-900x473.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-8_32_56-2.png 1916w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>var_dump\u95a2\u6570\u306e\u51e6\u7406\u304c\u6b8b\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4e21\u65b9\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30a8\u30e9\u30fc\u5185\u5bb9\u306b\u95a2\u3057\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3067\u304d\u3066\u3044\u307e\u3059\u3002<br>\u30a8\u30e9\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u95a2\u3057\u3066\u306f\u3001\u524d\u56de\u4f5c\u6210\u3057\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u8868\u793a\u5185\u5bb9\u7b49\u306f\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/POST\u306a\u3089\u4fdd\u5b58\u51e6\u7406\nif($_SERVER&#x5B;'REQUEST_METHOD'] === 'POST') {\n    \/\/\u540d\u524d\u306e\u30c1\u30a7\u30c3\u30af\n    $name = null;\n    \/\/\u540d\u524d\u304cnull\u3067\u306a\u3044\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\n    if(!isset($_POST&#x5B;'name']) || !strlen($_POST&#x5B;'name'])) {\n        $errors&#x5B;'name'] = '\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n    } else if (strlen($_POST&#x5B;'name']) > 40) {\n        $errors&#x5B;'name'] = '\u540d\u524d\u306f40\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n    } else {\n        $name = $_POST&#x5B;'name'];\n    }\n    \/\/\u30b3\u30e1\u30f3\u30c8\u306e\u30c1\u30a7\u30c3\u30af\n    $comment = null;\n    \/\/\u540d\u524d\u304cnull\u3067\u306a\u3044\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\n    if(!isset($_POST&#x5B;'comment']) || !strlen($_POST&#x5B;'comment'])) {\n        $errors&#x5B;'comment'] = '\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n    } else if (strlen($_POST&#x5B;'comment']) > 200) {\n        $errors&#x5B;'comment'] = '\u30b3\u30e1\u30f3\u30c8\u306f200\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n    } else {\n        $comment = $_POST&#x5B;'comment'];\n    }\n<\/pre><\/div>\n\n\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u95a2\u3057\u3066\u3001\u4e00\u90e8\u88c5\u98fe\u3092\u5165\u308c\u3066\u307e\u3059\u304c\u3001\u4eca\u56de\u8a18\u4e8b\u306e\u6700\u5f8c\u3067CSS\u306e\u7de8\u96c6\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3053\u3067\u7d39\u4ecb\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<br>\u307e\u305f\u3001\u4e0a\u8a18\u3092\u8a18\u8f09\u3057\u305f\u3053\u3068\u3067\u5fc5\u8981\u306a\u304f\u306a\u3063\u305fvar_dump\u95a2\u6570\u306e\u51e6\u7406\u306f\u53d6\u308a\u9664\u304d\u307e\u3059\u3002<br>\u4e0b\u8a18\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u90e8\u5206\u304c\u524a\u9664\u3059\u308b\u51e6\u7406\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; highlight: [13,14,15,16]; title: ; notranslate\" title=\"\">\n\/\/\u30a8\u30e9\u30fc\u304c\u306a\u3051\u308c\u3070\u4fdd\u5b58\nif (count($errors) === 0) {\n    \/\/\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306eSQL\u5206\u3092\u4f5c\u6210\n    $sql ='INSERT INTO post(pname, comment, created_day)VALUES(\"'\n        .mysqli_real_escape_string($mysql, $name).'\",\"'\n        .mysqli_real_escape_string($mysql, $comment).'\",\\''\n        .date('Y-m-d H:i:s').'\\')';\n    \/\/\u4fdd\u5b58\u3059\u308b\n    mysqli_query($mysql, $sql);\n    \/\/\u63a5\u7d9a\u3092\u9589\u3058\u308b\n    mysqli_close($mysql);\n    header('location: http:\/\/' .$_SERVER&#x5B;'HTTP_HOST'] . $_SERVER&#x5B;'REQUEST_URI']);\n}else{\n    var_dump($errors);\n    \/\/\u63a5\u7d9a\u3092\u9589\u3058\u308b\n    mysqli_close($mysql);\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"php3-3\">\u6295\u7a3f\u5185\u5bb9\u306e\u8868\u793a<br><\/h2>\n\n\n\n<p>\u524d\u56de\u307e\u3067\u306f\u3001\u540d\u524d\u3068\u5185\u5bb9\u3092\u6295\u7a3f\u3057\u3066\u3082\u3001DB\u306b\u4fdd\u5b58\u3055\u308c\u308b\u3060\u3051\u3067\u3001\u6295\u7a3f\u5185\u5bb9\u304c\u76ee\u306b\u898b\u3048\u3066\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u305f\u3081\u3001<br>\u63b2\u793a\u677f\u3068\u547c\u3079\u306a\u3044\u3082\u306e\u3067\u3057\u305f\u3002<br>\u4eca\u56de\u306f\u3001\u6295\u7a3f\u5185\u5bb9\u304c\u5171\u6709\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br><br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n<body>\n    <h1 id=\"bbs-2\">BBS<\/h1>\n    <form action=\"bbs.php\" method=\"post\">\n        <!-- \u30a8\u30e9\u30fc\u304c\u3042\u308c\u3070\u8868\u793a -->\n        <?php if (count($errors)): ?>\n        <ul class=\"error_list\">\n            <?php foreach ($errors as $error): ?>\n            <li>\n                <?php echo htmlspecialchars($error, ENT_QUOTES, 'UTF-8') ?>\n            <\/li>\n            <?php endforeach; ?>\n        <\/ul>\n        <?php endif; ?>\n        \u540d\u524d:\u3000<input type=\"text\" name=\"name\" \/><br>\n        \u5185\u5bb9:\u3000<input type=\"text\" name=\"comment\" size=\"60\" \/><br>\n        <input type=\"submit\" name=\"submit\" value=\"\u9001\u4fe1\" \/>\n    <\/form>\n    <!-- \u53d6\u5f97\u5185\u5bb9\u3092\u8868\u793a -->\n    <?php if (count($posts) > 0): ?>\n    <ul>\n        <?php foreach ($posts as $post): ?>\n        <li>\n            <?php echo htmlspecialchars($post&#x5B;'pname'], ENT_QUOTES, 'UTF-8'); ?>\n            <?php echo htmlspecialchars($post&#x5B;'comment'], ENT_QUOTES, 'UTF-8'); ?>\n            - <?php echo htmlspecialchars($post&#x5B;'created_day'], ENT_QUOTES, 'UTF-8'); ?>\n        <\/li>\n        <?php endforeach; ?>\n    <\/ul>\n    <?php endif; ?>\n<\/body>\n<\/pre><\/div>\n\n\n<p>\u4e0a\u8a18\u304c\u5b8c\u6210\u306e\u30b3\u30fc\u30c9\u3068\u306a\u308a\u307e\u3059\u3002<br>Form\u30bf\u30b0\u306e\u4e0b\u306bDB\u304b\u3089\u306e\u53d6\u5f97\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u3001DB\u306e\u8a72\u5f53\u30c6\u30fc\u30d6\u30eb\u4e0a\u306b\u3042\u308b\u540d\u524d\u304b\u3089\u6295\u7a3f\u65e5\u6642\u307e\u3067\u306e\u5185\u5bb9\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br>\u51e6\u7406\u306b\u95a2\u3057\u3066\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8868\u793a\u3067\u884c\u3063\u3066\u3044\u305f\u51e6\u7406\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u3067\u3059\u3002<br>\u3067\u306f\u3001\u5b9f\u969b\u306b\u52d5\u4f5c\u3055\u305b\u3066\u307f\u305f\u7d50\u679c\u304c\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4-1024x532.png\" alt=\"\" class=\"wp-image-8279\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4-1024x532.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4-300x156.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4-768x399.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4-450x234.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4-900x468.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_03_59-4.png 1915w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u554f\u984c\u306a\u304f\u3001\u5fc5\u8981\u9805\u76ee\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u3069\u3093\u3069\u3093\u6295\u7a3f\u3059\u308b\u3053\u3068\u3067\u3001\u60c5\u5831\u304c\u84c4\u7a4d\u3055\u308c\u3066\u3001\u5171\u6709\u5185\u5bb9\u3082\u591a\u304f\u306a\u3063\u3066\u3044\u304f\u4ed5\u7d44\u307f\u306b\u306a\u308a\u307e\u3059\u3002<br>\uff08\u6295\u7a3f\u5185\u5bb9\u304c\u304b\u306a\u308a\u591a\u304f\u306a\u308b\u3068\u691c\u7d22\u6a5f\u80fd\u304c\u306a\u3044\u3068\u3064\u3089\u3044\u3067\u3059\u306d&#8230;\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"php3-4\">\u30d5\u30a1\u30a4\u30eb\u306e\u5206\u5272<\/h2>\n\n\n\n<p>\u4e00\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u304b\u306a\u308a\u51e6\u7406\u304c\u5897\u3048\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u524d\u56de\u3082\u5206\u5272\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u51e6\u7406\u306e\u6574\u7406\u3082\u542b\u3081\u3066\u3001<br>\u518d\u5206\u5272\u3057\u307e\u3059\u3002<br>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u69cb\u6210\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>bbs.php\u3000\u3000\u3000\u3000\uff1a\u3000php\u306e\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u51e6\u7406\u3092\u30e1\u30a4\u30f3\u306b\u884c\u3063\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb<\/li><li>bbs_view.php\u3000 \uff1a\u3000WEB\u3067\u8868\u793a\u3055\u308c\u308bHTML\u90e8\u5206\u3092\u30e1\u30a4\u30f3\u306b\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff08\u4e00\u90e8PHP\u306e\u51e6\u7406\u3082\u3042\u308a\uff09<\/li><li>bbs.css\u3000\u3000\u3000\u3000  \uff1a\u3000\u30c7\u30b6\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/bbs.php\n\n<?php\n    \/\/DB\u306b\u63a5\u7d9a\n    $mysql = mysqli_connect('localhost', 'root', 'AoFLS030cztQMGzd6i3e', 'fp_bbs');\n    if (!$mysql) {\n        exit('DB\u63a5\u7d9a\u30a8\u30e9\u30fc');\n    } \n    mysqli_set_charset($mysql, 'utf8');\n    \/\/DB\u306e\u9078\u629e\n    $result = mysqli_select_db($mysql, 'fp_bbs');\n    if (!$result) {\n        exit('DB\u9078\u629e\u30a8\u30e9\u30fc');\n    } \n    $errors = array();\n\n    \/\/POST\u306a\u3089\u4fdd\u5b58\u51e6\u7406\n    if($_SERVER&#x5B;'REQUEST_METHOD'] === 'POST') {\n        \/\/\u540d\u524d\u306e\u30c1\u30a7\u30c3\u30af\n        $name = null;\n        \/\/\u540d\u524d\u304cnull\u51fa\u306a\u3044\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\n        if(!isset($_POST&#x5B;'name']) || !strlen($_POST&#x5B;'name'])) {\n            $errors&#x5B;'name'] = '\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n        } else if (strlen($_POST&#x5B;'name']) > 40) {\n            $errors&#x5B;'name'] = '\u540d\u524d\u306f40\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n        } else {\n            $name = $_POST&#x5B;'name'];\n        }\n        \/\/\u30b3\u30e1\u30f3\u30c8\u306e\u30c1\u30a7\u30c3\u30af\n        $comment = null;\n        \/\/\u540d\u524d\u304cnull\u51fa\u306a\u3044\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\n        if(!isset($_POST&#x5B;'comment']) || !strlen($_POST&#x5B;'comment'])) {\n            $errors&#x5B;'comment'] = '\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n        } else if (strlen($_POST&#x5B;'comment']) > 200) {\n            $errors&#x5B;'comment'] = '\u30b3\u30e1\u30f3\u30c8\u306f200\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044';\n        } else {\n            $comment = $_POST&#x5B;'comment'];\n        }\n        \/\/\u30a8\u30e9\u30fc\u304c\u306a\u3051\u308c\u3070\u4fdd\u5b58\n        if (count($errors) === 0) {\n            \/\/\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306eSQL\u5206\u3092\u4f5c\u6210\n            $sql ='INSERT INTO post(pname, comment, created_day)VALUES(\"'\n                .mysqli_real_escape_string($mysql, $name).'\",\"'\n                .mysqli_real_escape_string($mysql, $comment).'\",\\''\n                .date('Y-m-d H:i:s').'\\')';\n            \/\/\u4fdd\u5b58\u3059\u308b\n            mysqli_query($mysql, $sql);\n            \/\/\u63a5\u7d9a\u3092\u9589\u3058\u308b\n            mysqli_close($mysql);\n            header('location: http:\/\/' .$_SERVER&#x5B;'HTTP_HOST'] . $_SERVER&#x5B;'REQUEST_URI']);\n        }\n    }\n    include 'views\/bbs_view.php';\n?>\n\n\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/bbs_view.php\n\n<?php\n    \/\/\u6295\u7a3f\u3055\u308c\u305f\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u3001SQL\u3067\u7d50\u679c\u53d6\u5f97\n    $sql = \"SELECT * FROM `post` ORDER BY `created_day` DESC\";\n    $result = mysqli_query($mysql, $sql);\n    \n    \/\/\u53d6\u5f97\u7d50\u679c\u3092$posts\u306b\u683c\u7d0d\n    $posts = array();\n    if ($result != false &#038;&#038; mysqli_num_rows($result)) {\n        while ($post = mysqli_fetch_assoc($result)) {\n            $posts&#x5B;] = $post;\n        }\n    }\n    \/\/\u53d6\u5f97\u7d50\u679c\u306e\u89e3\u653e\u3068\u63a5\u7d9a\u3092\u9589\u3058\u308b\n    mysqli_free_result($result);\n    mysqli_close($mysql);\n    ?>\n<?php\n\tmysqli_free_result($result);\n\tmysqli_close($mysql);\n?>\n<!DOCTYPE html>\n<html lang=\"ja\">\n    <head>\n        <meta charset=\"UTF-8\">\n        <link rel=\"stylesheet\" href=\"views\/bbs.css\">\n        <title>BBS<\/title>\n    <\/head>\n    <body>\n        <h1 id=\"bbs-3\">BBS<\/h1>\n        <form action=\"bbs.php\" method=\"post\">\n            <!-- \u30a8\u30e9\u30fc\u304c\u3042\u308c\u3070\u8868\u793a -->\n            <?php if (count($errors)): ?>\n            <ul class=\"error_list\">\n                <?php foreach ($errors as $error): ?>\n                <li>\n                    <?php echo htmlspecialchars($error, ENT_QUOTES, 'UTF-8') ?>\n                <\/li>\n                <?php endforeach; ?>\n            <\/ul>\n            <?php endif; ?>\n            \u540d\u524d:\u3000<input type=\"text\" name=\"name\" \/><br>\n            \u5185\u5bb9:\u3000<input type=\"text\" name=\"comment\" size=\"60\" \/><br>\n            <input type=\"submit\" name=\"submit\" value=\"\u9001\u4fe1\" \/>\n        <\/form>\n        <!-- \u53d6\u5f97\u5185\u5bb9\u3092\u8868\u793a -->\n        <?php if (count($posts) > 0): ?>\n        <ul>\n            <?php foreach ($posts as $post): ?>\n            <li>\n                <?php echo htmlspecialchars($post&#x5B;'pname'], ENT_QUOTES, 'UTF-8'); ?>\n                <?php echo htmlspecialchars($post&#x5B;'comment'], ENT_QUOTES, 'UTF-8'); ?>\n                - <?php echo htmlspecialchars($post&#x5B;'created_day'], ENT_QUOTES, 'UTF-8'); ?>\n            <\/li>\n            <?php endforeach; ?>\n        <\/ul>\n        <?php endif; ?>\n    <\/body>\n<\/html>\n<\/pre><\/div>\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u51e6\u7406\u3068\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u51e6\u7406\u3092\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u53ef\u8aad\u6027\u3082\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002<br>bbs.php\u306e\u6700\u5f8c\u306b &#8220;include \u8aad\u307f\u8fbc\u307f\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb&#8221;\u3092\u5165\u308c\u308b\u3053\u3068\u3067\u3001bbs_view.php\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3001\u753b\u9762\u8868\u793a<br>\u3055\u308c\u308b\u4ed5\u7d44\u307f\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>css\u30d5\u30a1\u30a4\u30eb\u306b\u95a2\u3057\u3066\u306f\u3001\u6b21\u7ae0\u3067\u8aac\u660e\u3059\u308b\u306e\u3067\u3001\u6b21\u7ae0\u306e\u6700\u5f8c\u306b\u5b8c\u6210\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"php3-5\">\u898b\u6804\u3048\u6539\u5584 <\/h2>\n\n\n\n<p>\u4eca\u56de\u3067\u4e00\u65e6\u7c21\u6613\u63b2\u793a\u677f\u306f\u5b8c\u6210\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u6a5f\u80fd\u7684\u306b\u306f\u60f3\u5b9a\u3057\u3066\u3044\u305f\u3082\u306e\u3092\u3059\u3079\u3066\u76db\u308a\u8fbc\u3081\u305f\u306e\u3067\u3059\u304c\u3001<br>\u898b\u305f\u76ee\u304c\u4f55\u3068\u3082\u4e0d\u7d30\u5de5\u306a\u611f\u3058\u3067\u3059\u3088\u306d\u3002<br>\u3053\u306e\u8fba\u308a\u5c11\u3057\u3067\u3082\u6539\u5584\u3067\u304d\u305f\u3089\u3068\u601d\u3044\u3001\u30b3\u30fc\u30c9\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<br>\u307e\u305a\u6700\u521d\u306b\u6539\u5584\u3057\u305f\u90e8\u5206\u304c\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304a\u3088\u3073\u6295\u7a3f\u5185\u5bb9\u306e\u8868\u793a\u306b\u95a2\u3057\u3066\u3067\u3059\u3002<br>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3082\u3082\u3061\u308d\u3093\u3067\u3059\u304c\u3001\u6295\u7a3f\u5185\u5bb9\u3082\u3042\u307e\u308a\u76ee\u3092\u5f15\u3051\u306a\u3044\u30c7\u30b6\u30a4\u30f3\u306a\u306e\u3067\u3001\u5c11\u3057\u304d\u308c\u3044\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\nul {\n\tpadding: 0.5em;\n\tlist-style-type: none;\n}\nul li {\n\tposition: relative;\n\tpadding: 0.5em 1em 0.5em 2.3em;\n\tmargin-bottom:5px;\n}\nul li:after,\nul li:before{\n\tcontent:'';\n\tposition: absolute;\n\tborder-radius: 50%;\n}\nul li:before {\n\ttop: 50%;\n\tleft: 0.2em;\n\twidth: 17px;\n\theight: 17px;\n\tbackground: rgba(25,118,210, 1);\n\ttransform: translateY(-50%);\n}\nul li:after {\n\ttop: 1.1em;\n\tleft: 0.7em;\n\twidth: 14px;\n\theight: 14px;\n\tbackground: rgba(25,118,210, 0.5);\n}\n<\/pre><\/div>\n\n\n<p>css\u306b\u95a2\u3057\u3066\u306f\u3001\u4eca\u56de\u306f\u6df1\u304f\u89e6\u308c\u307e\u305b\u3093\u304c\u3001\u3044\u308d\u3093\u306a\u30c7\u30b6\u30a4\u30f3\u3092\u8a66\u3059\u3053\u3068\u304c\u51fa\u6765\u308b\u306e\u3067\u3001\u7686\u3055\u3093\u306e\u597d\u304d\u306a\u96f0\u56f2\u6c17\u306b\u3057\u3066\u3082\u3089\u3048\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"533\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2-1024x533.png\" alt=\"\" class=\"wp-image-8281\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2-1024x533.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2-300x156.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2-768x400.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2-450x234.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2-900x468.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_16-21_15_16-2.png 1916w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u5c11\u3057\u3055\u308f\u3084\u304b\u306a\u5370\u8c61\u3092\u8868\u73fe\u3067\u304d\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br>\u500b\u4eba\u7684\u306b\u5de6\u306e\u30a2\u30a4\u30b3\u30f3\u304c\u6c17\u306b\u5165\u3063\u3066\u3044\u307e\u3059\u3002<br>\u30cd\u30c3\u30c8\u3067\u691c\u7d22\u3059\u308b\u3068\u3001\u304a\u3057\u3083\u308c\u306a\u30c7\u30b6\u30a4\u30f3\u306e\u30bd\u30fc\u30b9\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u3082<br>\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br><br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n\/\/bbs.css\n\nul {\n\tpadding: 0.5em;\n\tlist-style-type: none;\n}\nul li {\n\tposition: relative;\n\tpadding: 0.5em 1em 0.5em 2.3em;\n\tmargin-bottom:5px;\n}\nul li:after,\nul li:before{\n\tcontent:'';\n\tposition: absolute;\n\tborder-radius: 50%;\n}\nul li:before {\n\ttop: 50%;\n\tleft: 0.2em;\n\twidth: 17px;\n\theight: 17px;\n\tbackground: rgba(25,118,210, 1);\n\ttransform: translateY(-50%);\n}\nul li:after {\n\ttop: 1.1em;\n\tleft: 0.7em;\n\twidth: 14px;\n\theight: 14px;\n\tbackground: rgba(25,118,210, 0.5);\n}\ninput&#x5B;type='text']{\n    width: 100%;\n    max-width: 400px;\n    margin-left:5px;\n    margin-top:10px;\n    padding: 5px;\n    border-radius: 5px;\n    border: 1px solid #ccc;\n    appearance: none;\n    -webkit-appearance: none;\n    -moz-appearance: none;\n}\ninput&#x5B;type='submit']{\n    margin-top:10px;\n    margin-left:60px;\n    display       : inline-block;\n    border-radius : 5%;          \/* \u89d2\u4e38       *\/\n    font-size     : 13pt;        \/* \u6587\u5b57\u30b5\u30a4\u30ba *\/\n    text-align    : center;      \/* \u6587\u5b57\u4f4d\u7f6e   *\/\n    cursor        : pointer;     \/* \u30ab\u30fc\u30bd\u30eb   *\/\n    padding       : 11px 12px;   \/* \u4f59\u767d       *\/\n    background    : #cccccc;     \/* \u80cc\u666f\u8272     *\/\n    color         : #000000;     \/* \u6587\u5b57\u8272     *\/\n    line-height   : 1em;         \/* 1\u884c\u306e\u9ad8\u3055  *\/\n    opacity       : 1;           \/* \u900f\u660e\u5ea6     *\/\n    transition    : .3s;         \/* \u306a\u3081\u3089\u304b\u5909\u5316 *\/\n}\ninput&#x5B;type='submit']:hover{\n    box-shadow    : none;        \/* \u30ab\u30fc\u30bd\u30eb\u6642\u306e\u5f71\u6d88\u53bb *\/\n    opacity       : 0.8;         \/* \u30ab\u30fc\u30bd\u30eb\u6642\u900f\u660e\u5ea6 *\/\n}\n<\/pre><\/div>\n\n\n<p>\u30d5\u30a9\u30fc\u30e0\u306e\u5165\u529b\u5206\u3068\u9001\u4fe1\u30dc\u30bf\u30f3\u3082\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3060\u3068\u4e0d\u7d30\u5de5\u306a\u306e\u3067\u3001css\u3067\u8abf\u6574\u3057\u307e\u3057\u305f\u3002<br>\u9001\u4fe1\u30dc\u30bf\u30f3\u306b\u95a2\u3057\u3066\u306f\u3001\u4e0b\u8a18\u306e\u30b5\u30a4\u30c8\u3067\u7c21\u5358\u306b\u30c7\u30b6\u30a4\u30f3\u8abf\u6574\u304c\u51fa\u6765\u308b\u306e\u3067\u3001\u53c2\u8003\u307e\u3067\u306b<br>\u7d39\u4ecb\u3057\u307e\u3059\u3002<br> <br><a href=\"https:\/\/webparts.cman.jp\/button\/submit\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\">https:\/\/webparts.cman.jp\/button\/submit\/<\/a> <\/p>\n\n\n\n<p>\u5168\u4f53\u306e\u30c7\u30b6\u30a4\u30f3\u53ca\u3073\u3001\u5c11\u3057\u63b2\u793a\u677f\u98a8\u306b\u6295\u7a3f\u3057\u3066\u307f\u305f\u3082\u306e\u3092\u4e0b\u8a18\u753b\u50cf\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2-1024x537.png\" alt=\"\" class=\"wp-image-8285\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2-1024x537.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2-300x157.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2-768x402.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2-450x236.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2-900x472.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/10\/BBS-Google-Chrome-2019_10_17-16_45_22-2.png 1914w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u30c7\u30b6\u30a4\u30f3\u56de\u308a\u3082\u3059\u3053\u3057\u304d\u308c\u3044\u306b\u3067\u304d\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br>\u6295\u7a3f\u306b\u95a2\u3057\u3066\u3082\u3001\u554f\u984c\u306a\u304f\u53cd\u6620\u3055\u308c\u3066\u3044\u3066\u3001\u7c21\u6613\u63b2\u793a\u677f\u306f\u4e00\u65e6\u4f5c\u6210\u5b8c\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"php3-6\">\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u7c21\u6613\u63b2\u793a\u677f\u306e\u4f5c\u6210\u306f\u7d42\u4e86\u3057\u307e\u3059\u3002\u6b21\u56de\u4ee5\u964d\u306f\u3088\u308aSNS\u306b\u8fd1\u3065\u3051\u308b\u305f\u3081\u306b\u3001\u6a5f\u80fd\u9762\u7b49\u3053\u3060\u308f\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306a\u3069\u3082\u99c6\u4f7f\u3057\u3066\u3001\u6b21\u56de\u4ee5\u964d\u88fd\u9020\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br>\u6b21\u56de\u8a18\u4e8b\u3067\u306f\u3001\u307e\u305a\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304b\u3089\u4f5c\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u306f\u3058\u3081\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8868\u793a\u65b9\u6cd5\u6295\u7a3f\u5185\u5bb9\u306e\u8868\u793a\u30d5\u30a1\u30a4\u30eb\u306e\u5206\u5272\u898b\u6804\u3048\u6539\u5584\u6b21\u56de\u4e88\u544a \u306f\u3058\u3081\u306b \u524d\u56de\u306f\u6295\u964d\u3057\u305f\u5185\u5bb9\u304cDB\u306b\u4fdd\u5b58\u3055\u308c\u308b\u307e\u3067\u306e\u6d41\u308c\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3001\u6295\u7a3f\u5185\u5bb9\u3092\u8868\u793a\u3059\u308b\u6a5f\u80fd\u3068\u3001\u898b\u6804\u3048\u306b\u95a2\u3057\u3066\u3001\u3082\u3046\u5c11\u3057\u898b\u3084\u3059\u3044\u3082\u306e\u306b\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8868\u793a\u65b9\u6cd5 \u524d\u56de\u306e\u6700\u5f8c\u306b\u30a8\u30e9\u30fc\u304c\u3042\u3063\u305f\u969b\u306b\u3001\u30bf\u30a4\u30c8\u30eb\u306e\u4e0a\u306b\u3001var_dump\u95a2\u6570\u3067\u53d6\u5f97\u3057\u305f\u30a8\u30e9\u30fc\u5185\u5bb9\u3092\u8868\u793a\u3059\u308b\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u3082\u30a8\u30e9\u30fc\u5185\u5bb9\u306f\u4f1d\u308f\u308b\u306e\u3067\u3059\u304c\u3001\u898b\u6804\u3048\u306e\u554f\u984c\u3068\u3082\u3046\u5c11\u3057\u30b7\u30f3\u30d7\u30eb\u306b\u5185\u5bb9\u3092\u304a\u4f1d\u3048\u3067\u304d\u308b\u65b9\u6cd5\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u307e\u305a\u5b9f\u88c5\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \/\/ \u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u51e6\u7406\u3092\u8ffd\u52a0 &lt;form action=&#8221;connectbbs.p&hellip;","protected":false},"author":13,"featured_media":8287,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[61],"class_list":{"0":"post-8271","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-php","8":"tag-season19"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/8271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8271"}],"version-history":[{"count":17,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/8271\/revisions"}],"predecessor-version":[{"id":8323,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/8271\/revisions\/8323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/8287"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}