PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 419 All time: 6,377 This week: 263Up
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: 3463194 in Germany Germany
Week rank: 503 Up20 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:419
This week:0
All time:6,377
This week:263Up