本文实例讲述了php获取文件mime类型的方法。分享给大家供大家参考。具体如下:
1.使用 mime_content_type 方法
string mime_content_type ( string $filename )
Returns the MIME content type for a file as determined by using information from the magic.mime file.
<?php
$mime_type = mime_conten
本文实例讲述了php获取文件mime类型的方法。分享给大家供大家参考。具体如下:
1.使用 mime_content_type 方法
string mime_content_type ( string $filename )
Returns the MIME content type for a file as determined by using information from the magic.mime file.
<?php
$mime_type = mime_co