| Recommend this page to a friend! |
| Author | ||
![]() |
|
|||||||||||||||||||
| Classes of Robert Widdick | > | PHP Mime Type Class | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | |||||||||
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Files and Folders | Listing, accessing and manipulating files and folders | View top rated classes |
| User ratings | ||
| Ratings | ||||||||
|---|---|---|---|---|---|---|---|---|
| All time: | ||||||||
| Month: | ||||||||
| Applications that use this class | ||
| Link | Description |
|---|---|
| PHP 5 | PHP 5 Required |
| Apache 2+ | Apache 2+ Required |
| File | Role | Description |
|---|---|---|
| Class | This is a PHP 5 class for attempting to detect the MIME type of a file. Uses FINFO (if available), a pre-defined MIME list, mime_content_type() or defaults to "application/octet-stream" for unknown types. | |
| Conf. | This includes the robust array of mime types | |
| Example | An example of how to list all files in a directory and display its name, size and MIME type | |
| Lic. | The GNU GPL License |
| Download all files: phpmimetypeclass.tar.gz phpmimetypeclass.zip |