package proposal: MIME_ContentType
| From: | Ian Eure | Date: | Wed, 11 Jun 2003 19:48:33 +0000 |
| Subject: | package proposal: MIME_ContentType | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17327@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
- --
"It is a painful thing to be alone. But more painful still, to be... polite."
- Throbbing Gristle, "A Debris Of A Murder"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+54eXHJcvLJR6wWoRAgwpAKCMRhqVb1s1hlYPRX88FOsykIq/UACghWqr
1m/MhrBsMB+u9q0t35LYCzQ=
=aQpI
-----END PGP SIGNATURE-----