Does anyone have a valid magic.mime file?

php.internals

Björn Wiberg

21 years ago
Hi again! I've been trying to get mime_magic to work with PHP 5.0.2, but it seems to complain about the magic file being valid. I've tried both with the Apache 2.0.52 version of "magic" and with the PHP5 Win32 version of "magic.mime", but it still says that they're invalid. Please, does anyone have a magic.mime file which is known to be working with PHP 5 on some variant of UNIX/Linux? If so, I'd very much appreciate getting a copy to try with. Many thanks in advance! Best regards, Björn

Aidan Lister

21 years ago
Hi Bjorn, There definitely isn't anything special about this file, however it works for me with Apache 2 / PHP 5, http://virtualexplorer.com.au/magic.mime Good luck, Aidan ""Björn wiberg"" <Bjorn.Wiberg@its.uu.se> wrote in message news:Pine.LNX.4.61.0411101419420.5215@bjornw.its.uu.se... Hi again! I've been trying to get mime_magic to work with PHP 5.0.2, but it seems to complain about the magic file being valid. I've tried both with the Apache 2.0.52 version of "magic" and with the PHP5 Win32 version of "magic.mime", but it still says that they're invalid. Please, does anyone have a magic.mime file which is known to be working with PHP 5 on some variant of UNIX/Linux? If so, I'd very much appreciate getting a copy to try with. Many thanks in advance! Best regards, Björn

Björn Wiberg

21 years ago
Hello Aidan! Thanks for your reply! On Thu, 11 Nov 2004, Aidan Lister wrote:
> There definitely isn't anything special about this file, however it works > for me with Apache 2 / PHP 5, > http://virtualexplorer.com.au/magic.mime
It seems that one doesn't work either (at least on our AIX system), but thanks anyway -- I really appreciate it! Best regards, Björn