the best way for my understanding
if (!function_exists('getUrlMimeType')) { function getUrlMimeType($url) { $buffer = file_get_contents($url); $finfo = new finfo(FILEINFO_MIME_TYPE); return $finfo->buffer($buffer); }}
is to create function depend on finfo class