best way to determine mime type of file these days?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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
========================================================================

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux