{"id":122038,"date":"2024-03-24T04:51:25","date_gmt":"2024-03-23T19:51:25","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/"},"modified":"2024-04-05T15:16:00","modified_gmt":"2024-04-05T06:16:00","slug":"php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/","title":{"rendered":"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014"},"content":{"rendered":"<p>file_get_contents()\u95a2\u6570\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306eURL\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3001JSON\u30c7\u30fc\u30bf\u3001XML\u30c7\u30fc\u30bf\u306a\u3069\u306e\u8aad\u307f\u53d6\u308a\u306b\u4f7f\u7528\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u3067\u5f37\u529b\u306a\u95a2\u6570\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306bfile_get_contents()\u95a2\u6570\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u793a\u3057\u307e\u3059\uff1a<\/p>\n<ol>\n<li>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u307f\uff1afile_get_contents() \u95a2\u6570\u3067\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8aad\u307f\u8fbc\u307f\u3001\u6587\u5b57\u5217\u5909\u6570\u3068\u3057\u3066\u4fdd\u6301\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u964d\u306e\u51e6\u7406\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>JSON\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\uff1aJSON\u30c7\u30fc\u30bf\u3092URL\u3082\u3057\u304f\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u8aad\u307f\u8fbc\u307f\u3001json_decode()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u305d\u308c\u3092PHP\u306e\u914d\u5217\u307e\u305f\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30c7\u30b3\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>XML\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\uff1afile_get_contents() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066 XML \u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8aad\u307f\u8fbc\u307f\u3001SimpleXML \u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066 PHP \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u89e3\u6790\u3057\u3001\u30b3\u30fc\u30c9\u5185\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>Web \u30b5\u30fc\u30d0\u30fc\u306b\u3042\u308b\u30b5\u30fc\u30d0\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3080\uff1afile_get_contents()\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3001Web \u30b5\u30fc\u30d0\u30fc\u4e0a\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8aad\u307f\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3001\u4f8b\u3048\u3070 API \u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u306a\u3069\u3067\u3059\u3002<\/li>\n<\/ol>\n<p>file_get_contents() \u95a2\u6570\u306f\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3068\u30e1\u30e2\u30ea\u4e0d\u8db3\u3092\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u3001\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u306f\u9010\u6b21\u8aad\u307f\u8fbc\u307f\u3084\u30d6\u30ed\u30c3\u30af\u8aad\u307f\u8fbc\u307f\u306a\u3069\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u8aad\u307f\u8fbc\u307f\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u306f false \u304c\u8fd4\u3055\u308c\u308b\u306e\u3067\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5fc5\u305a\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>file_get_contents()\u95a2\u6570\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306eURL\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3001JSON\u30c7\u30fc\u30bf\u3001XML\u30c7\u30fc [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-122038","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/php-\u306e-file_get_contents-\u95a2\u6570\u306e\u7528\u9014\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014\" \/>\n<meta property=\"og:description\" content=\"file_get_contents()\u95a2\u6570\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306eURL\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3001JSON\u30c7\u30fc\u30bf\u3001XML\u30c7\u30fc [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/php-\u306e-file_get_contents-\u95a2\u6570\u306e\u7528\u9014\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T19:51:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-05T06:16:00+00:00\" \/>\n<meta name=\"author\" content=\"\u685c, \u6625\u6a39\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u685c, \u6625\u6a39\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/\",\"name\":\"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T19:51:25+00:00\",\"dateModified\":\"2024-04-05T06:16:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341\",\"name\":\"\u685c, \u6625\u6a39\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g\",\"caption\":\"\u685c, \u6625\u6a39\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/sakuraharuki\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014 - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/ja\/blog\/php-\u306e-file_get_contents-\u95a2\u6570\u306e\u7528\u9014\/","og_locale":"ja_JP","og_type":"article","og_title":"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014","og_description":"file_get_contents()\u95a2\u6570\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306eURL\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3001JSON\u30c7\u30fc\u30bf\u3001XML\u30c7\u30fc [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/php-\u306e-file_get_contents-\u95a2\u6570\u306e\u7528\u9014\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T19:51:25+00:00","article_modified_time":"2024-04-05T06:16:00+00:00","author":"\u685c, \u6625\u6a39","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u685c, \u6625\u6a39"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/","name":"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T19:51:25+00:00","dateModified":"2024-04-05T06:16:00+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP \u306e file_get_contents() \u95a2\u6570\u306e\u7528\u9014"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341","name":"\u685c, \u6625\u6a39","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g","caption":"\u685c, \u6625\u6a39"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/sakuraharuki\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/php-%e3%81%ae-file_get_contents-%e9%96%a2%e6%95%b0%e3%81%ae%e7%94%a8%e9%80%94\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/122038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=122038"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/122038\/revisions"}],"predecessor-version":[{"id":321608,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/122038\/revisions\/321608"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=122038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=122038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=122038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}