本地路径获取mime_content_type如果你的PHP版本是< 5.3 的,可以直接使用 1echo mime_content_type("a.jpg"); 该方法...