note 71364 modified in function.mime-content-type by nlopess
| From: | nlopess@php.net | Date: | Sun, 17 Dec 2006 19:20:06 +0000 |
| Subject: | note 71364 modified in function.mime-content-type by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120688@lists.php.net to get a copy of this message | ||
<?php
if ( ! function_exists ( 'mime_content_type' ) )
{
function mime_content_type ( $f )
{
return trim ( exec ('file -bi ' . escapeshellarg ( $f ) ) ) ;
}
}
?>
i used this one someone else posted
worked flawlessly the first time
--was--
<?php
if ( ! function_exists ( 'mime_content_type ' ) )
{
function mime_content_type ( $f )
{
return trim ( exec ('file -bi ' . escapeshellarg ( $f ) ) ) ;
}
}
?>
i used this one someone else posted
worked flawlessly the first time
http://php.net/manual/en/function.mime-content-type.php