PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  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: 416 All time: 6,067 This week: 1,135Up
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: 3259191 in Germany Germany
Week rank: 1356 Up55 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:416
This week:0
All time:6,067
This week:1,135Up