Re: package proposal: MIME_ContentType
| From: | Martin Jansen | Date: | Sat, 14 Jun 2003 13:35:10 +0000 |
| Subject: | Re: package proposal: MIME_ContentType | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17445@lists.php.net to get a copy of this message | ||
On Wed Jun 11, 2003 at 12:4833PM -0700, Ian Eure wrote:
> MIME_ContentType is a PEAR package for looking up a file's mimetype.
>
> Features:
> * Uses the system's mime database (/etc/mime.types) by default
> * Can find the mime-type for a file extension. (forward lookup)
> * Can find valid extensions for a mime-type (backward lookup)
> * MIME types may be added and removed.
> * New mime.types file may be written containing all the types MIME_ContentType
> knows about.
>
> It's under the PHP license, and the code is available for review at
> http://people.debian.org/~ieure/ContentType.phps
I'm +1 on this. But why is the class derived from PEAR? I don't see a
need for this ...
--
- Martin Martin Jansen
http://martinjansen.com/