I am using mime_content_type() in PHP 5.5 to get a MIME type, but it throws fatal: error function not found.
mime_content_type()
fatal: error function not found
How can I achieve this on PHP
Get the image size using:
$infFil=getimagesize($the_file_name);
and
echo $infFil["mime"]
The getimagesize returns an associative array which have a MIME key and obviously the image size too
getimagesize
I used it and it works