[PHP]
echo mime_content_ty pe('/var/www/html/video/small.mov'); //
1.5mb Quicktime video returns "video/quicktime"
echo mime_content_ty pe('/var/www/html/video/huge.mov'); //
10.5mb Quicktime video returns "text/plain"
[/PHP]
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_file size on /etc/php.ini and restarted
HTTPD, however, this did not fix the mime_content_ty pe() 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
echo mime_content_ty pe('/var/www/html/video/small.mov'); //
1.5mb Quicktime video returns "video/quicktime"
echo mime_content_ty pe('/var/www/html/video/huge.mov'); //
10.5mb Quicktime video returns "text/plain"
[/PHP]
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_file size on /etc/php.ini and restarted
HTTPD, however, this did not fix the mime_content_ty pe() 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
Comment