best way to determine mime type of file these days?
[email protected] ("Robert P. J. Day")
| Newsgroups | php.general |
|---|---|
| Message-ID | <alpine.LFD.2.00.1003171453490.15412@localhost> |
i realize it sounds trivial but the online info is annoyingly
recursive. there's mime_content_type(), but it's officially
deprecated. there's getimagesize() but, as i read it, it's only good
for images and i'm going to want to categorize audio and video files.
finally, numerous people refer to the PECL FileInfo extension but, in
the same breath, admit that a lot of folks have problems with it so
you might want to drop back to the (deprecated) mime_content_type()
routine.
thoughts?
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================