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
Make use of the finfo() functions.
OUTPUT :
image/gif
Note : Windows users must include the bundled php_fileinfo.dll DLL file in php.ini to enable this extension.
php_fileinfo.dll