mime_content_type and FileInfo

mime_content_type and FileInfo

am 21.04.2008 12:11:33 von Paul Scott

------=neXtPaRt_1208772708
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


I am in a bit of a pickle, or is that PECL?

I need to use either mime_content_type or FileInfo to get the mime type
of a file that is dumped into the system via email.

Now that is the easy part, where the hard part comes in is that a
commercial host that I use will do neither reason being that
mime_content_type is deprecated, and that FileInfo is "unstable" in PECL
only :/

Anyone got a workaround on this? I *really* don't feel like writing a
zillion lines of code to get arbitrary mimetypes out that will only be
used a little while and to replace 1 and 2 lines of code respectively.

--Paul
--
------------------------------------------------------------ .
| Chisimba PHP5 Framework - http://avoir.uwc.ac.za |
:----------------------------------------------------------- -:


------=neXtPaRt_1208772708
Content-Type: text/plain;

All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/public/portal_services/disclaime r.htm


------=neXtPaRt_1208772708
Content-Type: text/plain; charset=us-ascii

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
------=neXtPaRt_1208772708--