mime_content_type
    (PHP 4 >= 4.3.0, PHP 5)
mime_content_type -- ファイルの MIME Content-type を検出する
説明
string 
mime_content_type ( string filename )
     magic.mime ファイルの情報を用いて定義することに
     より、ファイルの MIME content type を返します。
     Content type は MIME 形式で返され、text/plain 
     あるいは application/octet-stream のようになります。
    
     
例 1. mime_content_type() の例 
<?php echo mime_content_type('php.gif') . "\n"; echo mime_content_type('test.php'); ?>
 |  
 上の例の出力は以下となります。  |