06-03-2008, 05:40 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: May 2008
Location: Denmark
Posts: 70
Thanks: 3
|
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 ;) ?>
|
|
|
|