php mime types are different for different php versions. See note http://www.php.net/manual/en/function.finfo-open.php