Login   Register  
PHP Classes
elePHPant
Icontem

File: mimetypehandler.example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Reitsma  >  Mime type handler  >  mimetypehandler.example.php  >  Download  
File: mimetypehandler.example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: Mime type handler
Retrieve MIME type list from a configuration file
Author: By
Last change:
Date: 8 years ago
Size: 145 bytes
 

Contents

Class file image Download
<?php

include("mimetypehandler.class.php");

$mime = new MimetypeHandler();

echo 
$mime->getMimetype("fdsa.txt"); // Will output: text/plain

?>