# Does anyone have a valid magic.mime file?

- Thread: https://externals.io/message/13806
- Original archive: https://news-web.php.net/php.internals/13806
- Started by Bjorn.Wiberg@its.uu.se on 2004-11-10T13:26:18+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13806 — Bjorn.Wiberg@its.uu.se — 2004-11-10T13:26:18+00:00

URL: https://externals.io/message/13806#13806

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

---

## #13821 — Bjorn.Wiberg@its.uu.se — 2004-11-11T07:16:41+00:00

URL: https://externals.io/message/13806#13821

Hello Aidan!

Thanks for your reply!


> 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
