<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k-holy</author_name>
  <author_url>https://blog.hatena.ne.jp/k-holy/</author_url>
  <blog_title>k-holyのPHPとか諸々メモ</blog_title>
  <blog_url>https://k-holy.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>SPL</anon>
    <anon>Windows</anon>
  </categories>
  <description>Fileinfo関数は以前はPECL拡張モジュールでしたが、PHP5.3.0以降は特にCライブラリの追加も必要なく、デフォルトで有効になってます。 今回、初めてこの関数をWindows版で使ってみたメモです。サンプルコード ソートとか余計な処理も入ってますが、RecursiveDirectoryIteratorとRecursiveIteratorIteratorで再帰的にディレクトリ内にあるファイルのMIMEタイプを表示しています。 拡張子を偽ったファイルでも、きちんと本来のMIMEタイプが表示されました。ついでに、MIMEタイプ取得の仕組みも調べてみました。Linux の場合、fileコマン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-holy.hatenablog.com%2Fentry%2F2012%2F05%2F30%2F195901&quot; title=&quot;Fileinfo関数でMIMEタイプを取得する - k-holyの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>2012-05-30 19:59:01</published>
  <title>Fileinfo関数でMIMEタイプを取得する</title>
  <type>rich</type>
  <url>https://k-holy.hatenablog.com/entry/2012/05/30/195901</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
