View Single Post
Old 06-03-2008, 05:40 PM   #3 (permalink)
SpYkE112
The Contributor
 
Join Date: May 2008
Location: Denmark
Posts: 70
Thanks: 3
SpYkE112 is on a distinguished road
Default

You could do like this as an alternative, but it is stupid to rely on mime types and extentions.

But:
PHP Code:
<?php
$myFile 
'/path/to/my.file';

$ext end(explode('.'$myFile));

echo(
$ext);

// Outputs: file
// Or it should ;)
?>
SpYkE112 is offline  
Reply With Quote