echo mime_content_type('/var/www/html/video/small.mov'); // 1.5mb Quicktime video returns "video/quicktime"
echo mime_content_type('/var/www/html/video/huge.mov'); // 10.5mb Quicktime video returns "text/plain"
Environment:
PHP 5.0.4 - Windows XP --enable-mime_magic
PHP 4.3.11 - Fedora Core 4 --enable-mime_magic
In both cases, "--enable-mime_magic" was allowed with PHP installations. In both cases, if the Quicktime video is small, the MIME type returned is right; if the Quicktime video is large, the MIME type returned is wrong.
We managed to change upload_max_filesize on /etc/php.ini and restarted HTTPD, however, this did not fix the mime_content_type() problem.
We even changed the mime_magic.path variable to point to HTTPD (Apache)'s "magic" file instead of PHP's "magic.mime" file, which fixed an earlier problem with PNG images, but not with large MOV files.
Any suggestions?
Thanx
Phil