mime magic & MS word docs
| From: | Rob Agar | Date: | Tue, 14 Jun 2005 05:52:03 +0000 |
| Subject: | mime magic & MS word docs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216926@lists.php.net to get a copy of this message | ||
hi all,
I was just wondering if anyone has had any success using mime_magic to
guess the content type of MS Word documents..? The extension works for
gif's & jpeg's, but mime_content_type() returns "text/plain" for Word
and Excel docs.
I'm using php 5.0.4 on Windows, and the mime.magic file that's bundled
with php. I tried switching on the mime_magic debugging. It complained
about a lot of entries in the mime.magic file, saying that they weren't
proper mime types, but not the MS document type entries AFAICS
any help much appreciated
Rob