You are here: Re: [PHP] Mime-type handling « PHP « IT news, forums, messages
Re: [PHP] Mime-type handling

Posted by Curt Zirzow on 12/09/05 07:30

On Thu, Dec 08, 2005 at 12:31:52PM +0100, Manuel Vacelet wrote:
> Hi all,
>
> I'm facing a bad behaviour of 'file' command used by fileinfo PECL module
> (recommanded for mime-type checking):
> * Some Microsoft Excel documents are detected as Microsoft Word documents
> * Some HTML files are just text/plain
> * ...
>
> I tested on multiple machines (with different version of file) and I
> sometimes obtain a diffrent behaviour but never the one expected :/ I also
> looked for the latest version of file but it seems that the file used to
> detect the mime-type is out of date...

I'm not familiar to how fileinfo detects the contents, is the file
it is using a file like:

/usr/share/misc/magic

> ...
> * Where can I find an up-to-date version of magic number list usable with
> file for mime type checking ?

If the above is true, a updated version should be availble for the
OS you are using.

Curt.
--
cat .signature: No such file or directory

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация