PHP Classes

File: mimetypehandler.example.php

Recommend this page to a friend!
  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: 18 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

?>