<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Xephy</author_name>
  <author_url>https://blog.hatena.ne.jp/Xephy/</author_url>
  <blog_title>PHPに惚れました</blog_title>
  <blog_url>https://xephy.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>よそのコンテンツを取得するのに便利なfile_get_contents関数。 文書やHTMLファイルを取得するにはよく使ってるけど画像ファイルをgetしたらどうなるんだろうと思い試してみる。 ちゃんと画像が表示されるのか化けたテキストが出るのか。もちろんダメでしたけど。ちなみにhtaccessでErrorDocumentを指定しているとfile_get_contentsでデッドリンク検証は出来ない。 存在しないファイルを指定すると指定した403ページを呼び出してしまうため。 そんな時は以下のここのソースで検証。 一応ソースも。 &lt;?php function get_http_header( $…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxephy.hateblo.jp%2Fentry%2F20090227%2F1235734188&quot; title=&quot;file_get_contents関数 - PHPに惚れました&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-02-27 20:29:48</published>
  <title>file_get_contents関数</title>
  <type>rich</type>
  <url>https://xephy.hateblo.jp/entry/20090227/1235734188</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
