{"id":458,"date":"2010-07-07T19:40:15","date_gmt":"2010-07-07T10:40:15","guid":{"rendered":"http:\/\/yamazon.org\/?p=458"},"modified":"2010-07-07T19:40:15","modified_gmt":"2010-07-07T10:40:15","slug":"url-file-access-is-disabled-in-the-server-configuration%e3%81%a8%e3%81%84%e3%81%86%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8%e3%81%8c%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%81%9f%e5%a0%b4","status":"publish","type":"post","link":"https:\/\/apr20.net\/?p=458","title":{"rendered":"&#8220;URL file- access is disabled in the server configuration&#8221;\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"<p>\u25a0php.ini\u306e\u8a2d\u5b9a\u304c\u5909\u66f4\u53ef\u80fd\u306a\u5834\u5408<\/p>\n<p>PHP \u30b3\u30fc\u30c9 \u30b9\u30cb\u30da\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u3001\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b &#8220;URL file-access is disabled in the server configuration&#8221; (URL \u30d5\u30a1\u30a4\u30eb \u30a2\u30af\u30bb\u30b9\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3067\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059) \u30a8\u30e9\u30fc \u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001\u30a6\u30a7\u30d6\u30de\u30b9\u30bf\u30fc\u307e\u305f\u306f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0 \u30d7\u30ed\u30d0\u30a4\u30c0\u306b\u9023\u7d61\u3057\u3066\u3001PHP \u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u5185\u306e allow_url_fopen \u3068 allow_url_include \u3092\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8\uff1ahttps:\/\/www.google.com\/adsense\/support\/bin\/answer.py?hl=jp&#038;answer=70494<\/p>\n<p>\u25a0php\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u89e3\u6c7a\u3059\u308b\u5834\u5408<\/p>\n<p>&lt;? php<\/p>\n<p>function get_content($url)<br \/>\n{<br \/>\n    $ch = curl_init();<\/p>\n<p>    curl_setopt ($ch, CURLOPT_URL, $url);<br \/>\n    curl_setopt ($ch, CURLOPT_HEADER, 0);<\/p>\n<p>    ob_start();<\/p>\n<p>    curl_exec ($ch);<br \/>\n    curl_close ($ch);<br \/>\n    $string = ob_get_contents();<\/p>\n<p>    ob_end_clean();<\/p>\n<p>    return $string;<br \/>\n}<\/p>\n<p>#usage:<br \/>\n$content = get_content (&#8220;http:\/\/www.php.net&#8221;);<br \/>\nvar_dump ($content);<br \/>\n?><\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8\uff1ahttp:\/\/jp.php.net\/manual\/ja\/function.fopen.php<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0php.ini\u306e\u8a2d\u5b9a\u304c\u5909\u66f4\u53ef\u80fd\u306a\u5834\u5408 PHP \u30b3\u30fc\u30c9 \u30b9\u30cb\u30da\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[126],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-old-blog","tag-php"],"_links":{"self":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=458"}],"version-history":[{"count":0,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions"}],"wp:attachment":[{"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}