{"id":1315,"date":"2016-05-20T22:56:08","date_gmt":"2016-05-20T13:56:08","guid":{"rendered":"http:\/\/alaki.co.jp\/blog\/?p=1315"},"modified":"2016-05-20T22:56:08","modified_gmt":"2016-05-20T13:56:08","slug":"html%e3%81%a7php%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%9f%e3%81%84%e3%81%a8%e3%81%84%e3%81%86%e7%84%a1%e8%8c%b6%e3%82%92%e8%a8%80%e3%82%8f%e3%82%8c%e3%81%9f%e6%99%82%e3%81%ab%e8%a6%8b%e3%82%8b","status":"publish","type":"post","link":"http:\/\/test.alaki.co.jp\/blog\/?p=1315","title":{"rendered":"HTML\u3067PHP\u3092\u52d5\u304b\u3057\u305f\u3044\u3068\u3044\u3046\u7121\u8336\u3092\u8a00\u308f\u308c\u305f\u6642\u306b\u898b\u308b\u30e1\u30e2"},"content":{"rendered":"<p>\u3053\u3093\u3070\u3093\u306f\u3001Web\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u7be0\u7530\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u6697\u3044\u65b9\u304b\u3089\u898b\u308b\u3068\u30d7\u30ed\u30b0\u30e9\u30de\u3068\u3044\u3046\u306e\u306f\u3069\u3046\u3084\u3089\u9b54\u6cd5\u4f7f\u3044\u306e\u3088\u3046\u306b\u307f\u3048\u308b\u3088\u3046\u3067\u3059\u306d\u3002\uff08\u9b54\u6cd5\u4f7f\u3044\u3068\u307e\u3067\u306f\u8a00\u308f\u306a\u3044\u3067\u3082\u51c4\u3044\u3068\u76ee\u3092\u8f1d\u304b\u305b\u3066\u8a00\u308f\u308c\u308b\u3053\u3068\u306f\u591a\u3044\u3068\u601d\u3044\u307e\u3059\uff09<\/p>\n<p>\u305d\u3093\u306a\u9b54\u6cd5\u4f7f\u3044\u306b\u304a\u9858\u3044\u3055\u308c\u308b\u6848\u4ef6\u3067\u77e5\u3063\u3066\u304a\u304f\u3068\u611f\u8b1d\u3055\u308c\u308b\u304b\u3082\uff01\u3068\u3044\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3010\u6ce8\u610f\u3011<br \/>\n\u3053\u306e\u65b9\u6cd5\u304c\u4f7f\u3048\u308b\u5834\u9762\u306f\u9650\u3089\u308c\u3066\u3044\u308b\u4e0a\u306b\u3001\u3067\u304d\u305f\u304b\u3089\u3068\u3044\u3063\u3066\u8cde\u8cdb\u3055\u308c\u308b\u304b\u306f\u4fdd\u969c\u81f4\u3057\u307e\u305b\u3093\u306e\u3067\u4e88\u3081\u3054\u4e86\u627f\u304f\u3060\u3055\u3044m(_ _)m<\/p>\n<p><!--more--><\/p>\n<h2>\u8981\u4ef6\u3067\u51b7\u3084\u6c57\u3092\u304b\u3044\u3066\u307f\u3088\u3046\uff01<\/h2>\n<p>\u30fb\u73fe\u5728\u65e2\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u300c.html\u300d\u306e\u30b5\u30a4\u30c8\u5185\u3067\u300c.php\u300d\u3092\u52d5\u304b\u3057\u305f\u3044\u3002<br \/>\n\u30fbSEO\u3084\u5916\u90e8\u30ea\u30f3\u30af\u306e\u95a2\u4fc2\u3067\u62e1\u5f35\u5b50\u3092\u300c.php\u300d\u306b\u3057\u3066\u306f\u3044\u3051\u306a\u3044\uff01<br \/>\n\u30fb\u6d41\u77f3\u306b\u300cSSI\u300d\u306f\u3053\u306e\u3054\u6642\u4e16\u4f7f\u3046\u306e\u306f\u306f\u3070\u304b\u3089\u308c\u308b\u306e\u3067\u306a\u3057\u306e\u65b9\u5411\u3067\u3002<br \/>\n\u30fb.htaccess\u306f\u4f7f\u7528\u53ef\u80fd<br \/>\n\u30fbPHP\u3082\u4f7f\u7528\u53ef\u80fd\uff08PHP5.3\uff09<br \/>\n\u30fb\u30b5\u30fc\u30d0\u30fc\u306f\u5b9f\u306f\u300cheteml\uff08\u30d8\u30c6\u30e0\u30eb\uff09\u300d<br \/>\n\u30fbJS\u3092\u4f7f\u3063\u3066\u306e\u89e3\u6c7a\u306f\u3068\u308a\u3042\u3048\u305a\u4fdd\u7559<\/p>\n<p>\u3055\u3066\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u3059\u3054\u304f\u7279\u6b8a\u306a\u72b6\u614b\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u300c.html\u300d\u5185\u3067PHP\u3092\u52d5\u304b\u3059\u3053\u3068\u306f\u3067\u304d\u308b\u306e\u304b\uff1f<\/h2>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u300c\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01\uff01\uff08\u30c9\u30e4\uff09\u300d<\/p>\n<p>\u306a\u306e\u3067\u3001\u3053\u3046\u3044\u3063\u305f\u7121\u8336\u3092\u8a00\u308f\u308c\u3066\u3082\u300c\u62e1\u5f35\u5b50\u3092.php\u306b\u3057\u306a\u3044\u3068\u7121\u7406\u3067\u3059\u3088\uff01\uff01\u300d\u306a\u3093\u3066\u529b\u5f37\u304f\u8a00\u3063\u3066\u3057\u307e\u308f\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u300c.htaccess\u300d\u3092\u4f7f\u3046\u70b9\u3067\u3059\u3002<br \/>\n\u300c.htaccess\u304c\u4f7f\u3048\u306a\u3044\uff01\uff01\u300d\u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u306f\u4eca\u56de\u306f\u8003\u3048\u306a\u3044\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300cheteml\u300d\u3067\u300cPHP5.3\u300d\u304c\u52d5\u3044\u3066\u3044\u308b\u5834\u5408\u306e\u66f8\u304d\u65b9\u3092\u4e0b\u8a18\u306b\u8a18\u8f09\u3057\u307e\u3059<\/p>\n<h2>heteml\u306e\u5834\u5408<\/h2>\n<pre class=\"lang:default decode:true \" title=\"heteml\uff08PHP5.3\uff09\u306e\u5834\u5408\" >AddHandler php5.3-script .php .html<\/pre>\n<p>\u3053\u306e\uff11\u884c\u3092\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u306e\uff11\u884c\u76ee\u306a\u3069\u306b\u8a18\u8ff0\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u300cheteml\u300d\u3067\u300cPHP5.4\u300d\u306a\u3089\u3070\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u307e\u3059<\/p>\n<pre class=\"lang:default decode:true \" title=\"heteml\uff08PHP5.4\uff09\u306e\u5834\u5408\" >AddHandler php5.4-script .php .html<\/pre>\n<p>\u3057\u304b\u3057\u300cheteml\u300d\u3067\u300cPHP5.2\u300d\u306a\u3089\u3070\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u307e\u3059<\/p>\n<pre class=\"lang:default decode:true \" title=\"heteml\uff08PHP5.2\uff09\u306e\u5834\u5408\" >AddHandler php5-script .php .html<\/pre>\n<p>\u3064\u307e\u308a\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u66f8\u304d\u65b9\u304c\u5909\u308f\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u3044\u3063\u305f\u3044\u304a\u4f7f\u3044\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306ePHP\u304c\u52d5\u3044\u3066\u3044\u308b\u306e\u304b\u306b\u3088\u3063\u3066\u52d5\u304b\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u8981\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<p>\u305d\u3046\u306a\u308b\u3068\u300c\u79c1\u306e\u30b5\u30fc\u30d0\u30fc\u306f\u30ed\u30ea\u30dd\u30c3\u30d7\u3060\u3051\u3069\u540c\u3058\u3067\u3044\u3051\u308b\u304b\u306a\uff01\uff1f\u300d\u3068\u3044\u3063\u3066\u540c\u69d8\u306e\u8a18\u8ff0\u3092\u3057\u3066\u3082\u52d5\u304d\u307e\u305b\u3093orz<\/p>\n<h2>\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u5834\u5408<\/h2>\n<pre class=\"lang:default decode:true \" title=\"\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u5834\u5408\" >AddHandler php5.2-script .htm .html #PHP\u304c5.2\u306e\u5834\u5408\r\nAddHandler php5.3-script .htm .html #PHP\u304c5.3\u306e\u5834\u5408\r\nAddHandler php5.4-script .htm .html #PHP\u304c5.4\u306e\u5834\u5408<\/pre>\n<p>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u300c5.3\u300d\u3068\u300c5.4\u300d\u306e\u66f8\u304d\u65b9\u306f\u300cheteml\u300d\u3068\u540c\u3058\u3067\u3059\u304c\u300c5.2\u300d\u306f\u300cheteml\u300d\u306b\u6bd4\u3079\u3066\u7d20\u76f4\u3067\u3059\u306d\u3002<\/p>\n<h2>\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u5834\u5408<\/h2>\n<pre class=\"lang:default decode:true \" title=\"\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\" >Action myphp-script \/php.cgi\r\nAddHandler myphp-script .php .html<\/pre>\n<p>\u4e0a\u8a18\u3092\u300c.htaccess\u300d\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<br \/>\n\u3067\u3059\u304c\u3001\u3055\u304f\u3089\u30b5\u30fc\u30d0\u30fc\u306f\u4ed5\u69d8\u304c\u7279\u6b8a\u306a\u306e\u3067\u4e0a\u8a18\u300c.htaccess\u300d\u3060\u3051\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u3067\u3082\u3046\uff11\u3064\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<p>[php.cgi]<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u7279\u6b8a\u30d5\u30a1\u30a4\u30eb\" >#!\/bin\/sh\r\nexec \/usr\/local\/bin\/php-cgi<\/pre>\n<p>\u203b\u300cphp.cgi\u300d\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u300c705\u300d\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>XAMPP\u306e\u5834\u5408<\/h2>\n<pre class=\"lang:default decode:true \" title=\"XAMPP\u306e\u5834\u5408\" >AddType application\/x-httpd-php .html<\/pre>\n<p>\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u3082\u518d\u73fe\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u300cXAMPP\u300d\u3067\u3082\u540c\u69d8\u306e\u52d5\u304d\u304c\u3067\u304d\u308b\u3088\u3046.htaccess\u3092\u7528\u610f\u3057\u3066\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u300c.html\u300d\u3067\u300c.php\u300d\u306e\u3088\u3046\u306bPHP\u3092\u52d5\u304b\u3059\u3068\u3044\u3046\u7121\u8336\u632f\u308a\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306f\u3042\u304f\u307e\u3067\u3082\u300c\u6700\u7d42\u624b\u6bb5\u300d\u3068\u3057\u3066\u3068\u3063\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u300c.php\u300d\u3067\u52d5\u304b\u305b\u308b\u306e\u3067\u3042\u308c\u3070\u305d\u308c\u304c\u30d9\u30b9\u30c8\u306e\u65b9\u6cd5\u3067\u3059\u306e\u3067\u3001\u899a\u3048\u305f\u304b\u3089\u3068\u3044\u3063\u3066\u591a\u7528\u3057\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u3070\u3093\u306f\u3001Web\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u7be0\u7530\u3067\u3059\u3002 \u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u6697\u3044\u65b9\u304b\u3089\u898b\u308b&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":1317,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1315"}],"collection":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1315"}],"version-history":[{"count":1,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1315\/revisions"}],"predecessor-version":[{"id":1316,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1315\/revisions\/1316"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/1317"}],"wp:attachment":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1315"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}