Re: Adding new MIME types for the CLI web server
| From: | Mike Willbanks | Date: | Sat, 23 Nov 2013 04:22:25 +0000 |
| Subject: | Re: Adding new MIME types for the CLI web server | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70311@lists.php.net to get a copy of this message | ||
Chris,
What is wrong with a more common magic file which fileinfo utilizes? I
understand the concept of adding common extensions but only as a fallback
to distro behavior.
Regards,
Mike
On Oct 31, 2013 6:52 PM, "Christopher Jones" <christopher.jones@oracle.com>
wrote:
>
>
> On 10/31/13 4:12 PM, Stas Malyshev wrote:
>
>> Hi!
>>
>> Final comments anyone, before I commit next week?
>>>
>>
>> It looks strange that we have to hardcode so many mimetypes in the code,
>> and doesn't sound a scalable solution. Can't we make it use data from
>> fileinfo or some other customizeable table so we don't have to keep all
>> MIME types hardcoded in the code? Maybe some ability to use Apache's
>> mime.types file?
>>
>>
> It isn't scalable, but users can always use a router script to add
> additional types so there isn't a real world problem in missing
> uncommon extensions.
>
> My idea was to add common extensions to the existing look-up list. A
> quick and straight-forward solution to making the CLI web-server
> handle the 80-20 rule.
>
> If someone (ajf?) wants to work on a more comprehensive solution
> instead, I have no objection.
>
> Chris
>
> --
> christopher.jones@oracle.com http://twitter.com/ghrd
> Free PHP & Oracle book:
> http://www.oracle.com/technetwork/topics/php/
> underground-php-oracle-manual-098250.html
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>