Re: How to determine MIME type of a file
| From: | Martin | Date: | Wed, 18 Oct 2000 10:36:36 +0000 |
| Subject: | Re: How to determine MIME type of a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20864@lists.php.net to get a copy of this message | ||
I think you have to take the file mime.types and parse this for your
own.
Martin
Marc Burgauer wrote:
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net