Re: Adding new MIME types for the CLI web server
| From: | Christopher Jones | Date: | Thu, 31 Oct 2013 23:51:20 +0000 |
| Subject: | Re: Adding new MIME types for the CLI web server | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69990@lists.php.net to get a copy of this message | ||
On 10/31/13 4:12 PM, Stas Malyshev wrote:
Hi!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.htmlFinal 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?