mime_content_type() returns "text/plain" for large Quicktime files - HELP
- From: "comp.lang.php" <phillip.s.powell@xxxxxxxxx>
- Date: 1 Sep 2005 09:48:39 -0700
[PHP]
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"
[/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_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
.
- Follow-Ups:
- Prev by Date: Re: PHP Tutorials
- Next by Date: Re: Splitting a Search into Pages
- Previous by thread: I'm looking for feedback about a content management system
- Next by thread: Re: mime_content_type() returns "text/plain" for large Quicktime files - HELP
- Index(es):