> > /usr/share/file/magic
> /usr/share/file/magic has lots of rules to know its type and its just
> matching it.

I know it has a lot of rules.  Grepping it for excel shows that there
are rules in it for those types of files as well.

> Maybe your file is quite strange . have you tried with other xls files?

Yes, I have; the result is the same for all.

> what does  "file /path/to/my/excel.xls"  say

$ file excel.xls
excel.xls: Microsoft Office Document

Interestingly...

$ file word.doc
word.doc: Microsoft Office Document

So apparently, to the file command, there is no distinction.  That
seems both odd and wrong to me.  But not nearly as wrong as fileinfo
reporting "application/msword" as the mime type of an excel document.

thnx,
Christoph

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

Reply via email to