As we discussed on irc, mime_magic is now deprecated, there is currently no function available to detirmine mimetype without pecl/pear.
You could use exec('file -bi'..) or some other fallback or ugly hack that only increases code complexity and does not lend portability as they tend to be system/os specific. I think its reasonable for develpers to have access to this functionality without the need to install pecl/pear additions which in a hosting environment may not be possible. Kind regards Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php