Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69886 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83494 invoked from network); 26 Oct 2013 22:57:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2013 22:57:40 -0000 Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracle.com designates 141.146.126.69 as permitted sender) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 141.146.126.69 aserp1040.oracle.com Received: from [141.146.126.69] ([141.146.126.69:34556] helo=aserp1040.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/95-45431-2E84C625 for ; Sat, 26 Oct 2013 18:57:39 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r9QMvWpf021382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 26 Oct 2013 22:57:33 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9QMvVW6024392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Oct 2013 22:57:32 GMT Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9QMvVK5018944; Sat, 26 Oct 2013 22:57:31 GMT Received: from hubby.local (/50.150.115.211) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 26 Oct 2013 15:57:31 -0700 Message-ID: <526C48DA.1050109@oracle.com> Date: Sat, 26 Oct 2013 15:57:30 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Dan Ackroyd CC: PHP internals References: <526ACC9B.4090204@oracle.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Subject: Re: [PHP-DEV] Adding new MIME types for the CLI web server From: christopher.jones@oracle.com (Christopher Jones) On 10/26/13 10:39 AM, Dan Ackroyd wrote: > Hi, > > Christopher Jones wrote: >> I'm thinking of adding these to PHP 5.5.6 & master: >> { "mp4", "video/mpeg" }, > > FYI that's not the correct mime type for mp4 - > http://www.rfc-editor.org/rfc/rfc4337.txt > > The exact mime type depends on the content of the file, but > 'video/mp4' would be more appropriate than 'video/mpeg'. My mistake. Thanks for picking it up. Chris > > cheers > Dan > > On Fri, Oct 25, 2013 at 7:55 PM, Christopher Jones > wrote: >> I'm planning on adding some MIME type to the CLI web server. >> >> For PHP 5.5.5 CLI web server I added the .pdf MIME type. I was using >> the webserver for a conference exhibition hall demo and needed to >> present a PDF. >> >> Some other multi-media types could be useful in future situations, and >> in general. I'm thinking of adding these to PHP 5.5.6 & master: >> >> { "avi", "video/x-msvideo" }, >> { "flv", "video/x-flv" }, >> { "swf", "application/x-shockwave-flash" }, >> { "qt", "video/quicktime" }, >> { "mov", "video/quicktime" }, >> { "mp3", "audio/mpeg" }, >> { "mp4", "video/mpeg" }, >> { "mpg", "video/mpeg" }, >> { "mpeg", "video/mpeg" }, >> { "wav", "audio/wav" }, >> >> Notes: >> >> - A router can be used to add to, or override, the MIME type lookups, >> see http://php.net/manual/en/features.commandline.webserver.php >> >> - The web server code does a linear lookup through the MIME table, >> defaulting on failure to returning "application/octet-stream". >> >> -- >> 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 >> -- 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