Re: best way to determine mime type of file these days?
| From: | Per Jessen | Date: | Thu, 18 Mar 2010 07:52:47 +0000 |
| Subject: | Re: best way to determine mime type of file these days? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302950@lists.php.net to get a copy of this message | ||
Robert P. J. Day wrote:
>
> i realize it sounds trivial but the online info is annoyingly
> recursive. there's mime_content_type(), but it's officially
> deprecated.
On the manual page there is a reference to the Fileinfo PECL extension:
http://php/manual/en/ref.fileinfo.php
--
Per Jessen, Zürich (9.1°C)