Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 410 All time: 5,833 This week: 1,529Up
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: 3135189 in Germany Germany
Week rank: 1803 Up100 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:410All time:5,833
 This week:0This week:1,529Up