Class MOXMAN_Util_Mime
Inheritance | MOXMAN_Util_Mime |
---|
This class will return mime types for files by extracting the extension and comparing it to a Apache style mime types file.
Public Methods
Method | Description | Defined By |
---|---|---|
get() | Returns the mime type of an path by resolving it agains a apache style "mime.types" file. | MOXMAN_Util_Mime |
Method Details
Returns the mime type of an path by resolving it agains a apache style "mime.types" file.
public static String get ( $path, $mimeFile = "" ) | ||
$path | string | Path to Map/get content type by |
$mimeFile | String | Absolute filepath to mime.types style file. |
return | String | Mime type of path or an empty string on failue. |
---|