src/Common.php
final public static function get_mimetype(
		string $fname, string $path_to_file=null
	) {

		if (null === $mime = self::_mime_extension($fname))
			return self::_mime_magic($fname, $path_to_file);
		return $mime;
	}
final public static function get_mimetype(
		string $fname, string $path_to_file=null
	) {

		if (null === $mime = self::_mime_extension($fname))
			return self::_mime_magic($fname, $path_to_file);
		return $mime;
	}
final public static function get_mimetype ( string $ fname , string $ path_to_file = null ) { if ( null === $ mime = self :: _mime_extension ( $ fname ) ) return self :: _mime_magic ( $ fname , $ path_to_file ) ; return $ mime ; }
Find a mime type.

@param string $fname The file name.
@param string $path_to_file Path to `file`. Useful if
you have it outside PATH.
@return string The MIME type or application/octet-stream.
Find a mime type .