Javascript debugger
Website design
↑
Returns the MIME content type for a file as determined by using
information from the magic.mime
file.
This function has been deprecated as the PECL extension Fileinfo provides the same functionality (and more) in a much cleaner way.
<?php
echo mime_content_type('php.gif') . "\n";
echo mime_content_type('test.php');
?>
The above example will output:
image/gif
text/plain
Fileinfo for a replacement |