Files and Folders: Mime Type Getter
Bartek Pohl (contact me)
This class can be used to determine the MIME type of a file.
It can try to determine the MIME type associated to given file:
- Using the PHP file info extension
- Using the PHP MIME magic extension
- Checking the file name extension
The class can call fallback to the last method if any of the necessary PHP extensions are not available.
Click here for detailed information about this class on phpclasses.org