PHP Classes

Mime Type Getter: Determine the MIME type of a given file

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-09-26 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 413 All time: 5,982 This week: 1,322Up
Version License PHP version Categories  
mimetypegetter 1.0BSD License5.0PHP 5, Files and Folders
Description Author  

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.

Picture of Bartek Pohl
Name: Bartek Pohl <contact>
Classes: 1 package by
Country: Germany Germany
Age: ???
All time rank: 3216191 in Germany Germany
Week rank: 1676 Up84 in Germany Germany Up

  Files folder image Files  
File Role Description
Plain text file class.MimeTypeGetter.php Class The Classfile

 Version Control Unique User Downloads Download Rankings  
 0%Total:413All time:5,982
 This week:0This week:1,322Up