/** * Return the file mime type * @param string $path File path * @return string|boolean */ public static function _getMIME($path) { // Check file exists if (!parent::_Exists($path)) { return FALSE; } // Get image data $arrData = getimagesize($path); // Return mime type return $arrData[2]; }