{"id":145,"date":"2016-10-31T01:21:13","date_gmt":"2016-10-30T16:21:13","guid":{"rendered":"http:\/\/memo.baseline-lib.com\/?p=145"},"modified":"2016-11-05T13:00:34","modified_gmt":"2016-11-05T04:00:34","slug":"%e9%9d%99%e7%9a%84%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%83%af%e3%83%bc%e3%83%89%e3%83%97%e3%83%ac%e3%82%b9%e3%81%ae%e6%96%b0%e7%9d%80%e6%83%85%e5%a0%b1%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/memo.baseline-lib.com\/?p=145","title":{"rendered":"\u9759\u7684\u30da\u30fc\u30b8\u306b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u65b0\u7740\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>\u9759\u7684\u30da\u30fc\u30b8\u306b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u65b0\u7740\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5<\/h2>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#1\"><span class=\"toc_number toc_depth_1\">1<\/span> 1,\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">2<\/span> \u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u8a2d\u5b9a<\/a><\/li><li><a href=\"#php\"><span class=\"toc_number toc_depth_1\">3<\/span> \u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306ephp\u30d5\u30a1\u30a4\u30eb\u3092\u9759\u7684\u30da\u30fc\u30b8\u306b\u8aad\u307f\u8fbc\u3080\u8a18\u8ff0<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">4<\/span> \u9759\u7684\u30da\u30fc\u30b8\u306b\u65b0\u7740\u60c5\u5831\u306e\u8868\u793a<\/a><\/li><\/ul><\/div>\n<h3><span id=\"1\">1,\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>\u307e\u305a\u9759\u7684\u30da\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u968e\u5c64\u306b\u884c\u304d\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u8a2d\u7f6e\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u751f\u6210\u3057\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u304f\u3089\u30b5\u30fc\u30d0\u30fc\u306a\u3089<br \/>\nwww\/\u30c9\u30e1\u30a4\u30f3\u30d5\u30a9\u30eb\u30c0\/index.html\u3053\u306e\u3069\u3046\u968e\u5c64\u306b[news]\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u305d\u306e\u4e2d\u306b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30bb\u30c3\u30c8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<h3><span id=\"i\">\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u8a2d\u5b9a<\/span><\/h3>\n<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u8a2d\u5b9a\u306f\u7279\u306b\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u304c\u4e0b\u8a18\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u300c\u65e5\u4ed8\u300d\u300c\u898b\u51fa\u3057\u300d\u3068\u8868\u793a\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u7ba1\u7406\u753b\u9762\u304b\u3089\u8a2d\u5b9a\u2192\u30ab\u30b9\u30bf\u30e0\u69cb\u9020\u30c1\u30a7\u30c3\u30af\u2192\u3010\/%year%\/%monthnum%\/%day%\/%postname%\/\u3011\u3092\u5165\u529b\u3057\u8a2d\u5b9a\u3057\u3066\u307e\u3059\u3002<\/p>\n<h3><span id=\"php\">\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306ephp\u30d5\u30a1\u30a4\u30eb\u3092\u9759\u7684\u30da\u30fc\u30b8\u306b\u8aad\u307f\u8fbc\u3080\u8a18\u8ff0<\/span><\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092index.html\u306e\u5148\u982d\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?php require('.\/news\/wp-blog-header.php'); ?&gt;\r\n<\/pre>\n<p>html\u30d5\u30a1\u30a4\u30eb\u3092php\u30d5\u30a1\u30a4\u30eb\u306b\u3068\u3057\u3066\u8aad\u307f\u8fbc\u307e\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081.htaccess\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u5165\u529b\u3002(\u3055\u304f\u3089\u30b5\u30fc\u30d0\u30fc\u306e\u5834\u5408)\u501f\u308a\u3066\u308b\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u8a18\u8ff0\u65b9\u6cd5\u304c\u9055\u3046\u306e\u3067\u4ed6\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u5229\u7528\u306e\u5834\u5408\u306f\u5225\u306e\u8a18\u8ff0\u3092\u5165\u529b\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nAction myphp-script \/php.cgi\r\nAddHandler myphp-script .php .html\r\n<\/pre>\n<p>\u3055\u304f\u3089\u30b5\u30fc\u30d0\u30fc\u306f\u305d\u308c\u3060\u3051\u3067\u306f\u8aad\u307f\u8fbc\u307e\u306a\u3044\u306e\u3067php.cgi\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u5165\u529b\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n#!\/bin\/sh\r\nexec \/usr\/local\/bin\/php-cgi\r\n<\/pre>\n<p>\u751f\u6210\u3057\u305f\u30892\u3064\u306e\u30d5\u30a1\u30a4\u30eb.htaccess\u30fbphp.cgi\u30d5\u30a1\u30a4\u30eb\u3092index.html\u3068\u540c\u968e\u5c64\u306b\u8a2d\u7f6e\u3092\u3059\u308b\u3002\u305d\u306e\u969b\u3001php.cgi\u306f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092705\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\nwww\/\u30c9\u30e1\u30a4\u30f3\u30d5\u30a9\u30eb\u30c0\/index.html<\/p>\n<h3><span id=\"i-2\">\u9759\u7684\u30da\u30fc\u30b8\u306b\u65b0\u7740\u60c5\u5831\u306e\u8868\u793a<\/span><\/h3>\n<p>index.html\u306b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067\u3044\u308c\u305f\u8a18\u4e8b\u306e\u65b0\u7740\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u3001\u8868\u793a\u3057\u305f\u3044\u7b87\u6240\u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u52a0\u3048\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;topics_list&quot;&gt;\r\n&lt;?php\r\n \r\n        $args = array( 'posts_per_page' =&gt; 5, 'order'=&gt; 'DESC', 'orderby' =&gt; 'date' );\r\n        $posts = get_posts($args);\r\n \r\n        foreach ($posts as $p) :\r\n \r\n        ?&gt;\r\n            &lt;div class=&quot;date&quot;&gt;&lt;?php echo mysql2date( 'Y\/m\/d', $p-&gt;post_date ) ?&gt;&lt;\/div&gt;\r\n            &lt;div class=&quot;text&quot;&gt;&lt;?php echo $p-&gt;post_title; ?&gt;&lt;\/div&gt;\r\n        &lt;?php endforeach; ?&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>\u3059\u308b\u3068web\u4e0a\u3067\u306f\u4ee5\u4e0b\u306e\u8868\u793a\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;topics_list&quot;&gt;\r\n          &lt;div class=&quot;date&quot;&gt;2016\/10\/31&lt;\/div&gt;\r\n           &lt;div class=&quot;text&quot;&gt;\u898b\u51fa\u3057\u306e\u30c6\u30ad\u30b9\u30c84&lt;\/div&gt;\r\n            &lt;div class=&quot;date&quot;&gt;2016\/10\/30&lt;\/div&gt;\r\n           &lt;div class=&quot;text&quot;&gt;\u300c\u898b\u51fa\u3057\u306e\u30c6\u30ad\u30b9\u30c83&lt;\/div&gt;\r\n            &lt;div class=&quot;date&quot;&gt;2016\/10\/29&lt;\/div&gt;\r\n           &lt;div class=&quot;text&quot;&gt;\u898b\u51fa\u3057\u306e\u30c6\u30ad\u30b9\u30c82&lt;\/div&gt;\r\n            &lt;div class=&quot;date&quot;&gt;2016\/10\/28&lt;\/div&gt;\r\n           &lt;div class=&quot;text&quot;&gt;\u898b\u51fa\u3057\u306e\u30c6\u30ad\u30b9\u30c81&lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u5185\u5bb9\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0a\u304c\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067\u66f4\u65b0\u3057\u305f\u65b0\u7740\u60c5\u5831\u3092html\u4e0a\u306b\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9759\u7684\u30da\u30fc\u30b8\u306b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u65b0\u7740&hellip;<\/p>\n","protected":false},"author":2,"featured_media":149,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts\/145"}],"collection":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=145"}],"version-history":[{"count":4,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions\/162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/media\/149"}],"wp:attachment":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}