NYCPHP Meetup

NYPHP.org

[nycphp-talk] Checking 'mime type' of local file

David Krings ramons at gmx.net
Thu May 10 22:00:44 EDT 2007


Jon Baer wrote:
> What you're really looking for the is the 'magic' of the bin file.
> 
> http://en.wikipedia.org/wiki/Magic_number_%28programming%29
> 
> There is a PECL extension for diving into libmagic ...
> 
> http://pecl.php.net/package/Fileinfo
> 
> - Jon
> 
Thank you very much! I give that a try. Amazing what you know...

David



More information about the talk mailing list