I\'m just curious to know why mime_content_type() is now considered deprecated.
This method for determining the mime type is much easier than the replacement Fileinf
Another way is to pass to the constructor constant FILEINFO_MIME.
FILEINFO_MIME
$finfo = new finfo(FILEINFO_MIME); $type = $finfo->file('path/filename');