How to determine MIME type of a file
| From: | Marc Burgauer | Date: | Wed, 18 Oct 2000 10:11:55 +0000 |
| Subject: | How to determine MIME type of a file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-20862@lists.php.net to get a copy of this message | ||
Hi
In a PHP application, I need to be able to extract the MIME type of files on
the server (they're getting uploaded to the server via internal network). I
could not find how to do this in Apache/PHP. To use the file extension has
proven not to be reliable. I tried imap_mime_header_decode, but it expects a
mail message as the string.
Any ideas?
Cheers
Marc