Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69881 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65898 invoked from network); 26 Oct 2013 17:39:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2013 17:39:28 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.212.174 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.212.174 mail-wi0-f174.google.com Received: from [209.85.212.174] ([209.85.212.174:60622] helo=mail-wi0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/03-45431-C4EFB625 for ; Sat, 26 Oct 2013 13:39:25 -0400 Received: by mail-wi0-f174.google.com with SMTP id cb5so2309565wib.1 for ; Sat, 26 Oct 2013 10:39:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=91ENtF1o9+YgyVtagQjuss4edWfOvqHwrLbPJwMTZp0=; b=IoiOKDpaCue6SsF/ooRGzinDDs6/PNn+oCniMKeuuEXug4ZHBjxS/63Yz9+AG1twSJ 5C41pkuNu46/ErvOFsk9MT7GH0aoHdppY6xk0yOjAQYEsXSyPkjjD8jcbsu8CZehEm8Z 2zq9nPk1l09Dg3pIEx1fnKnr+yy5WHTHZQ+OxhjXyA7bGMNeUWN2tLc3tthGJHqspZCC VIwyvAmC3XIVt+PFhZUX8aqs1TEnw9Fe5yXRFN95YNRtqBdaVYsgH6vtb4YUcWJUPGdN 124UmniNcc1LpcyL2qKGSHDb4bF8gkq4pQZZSk85fXBQZJJfLYqfQi9eW76gLqV/gyOv l/5A== X-Gm-Message-State: ALoCoQmmQLMQgp6ZV/Zy1W/9csTcmX2cAGeNWnEn/jpqjDISQiOkDjErxuz/NJQWplJc7pMS3TrV MIME-Version: 1.0 X-Received: by 10.180.36.139 with SMTP id q11mr3112398wij.0.1382809161419; Sat, 26 Oct 2013 10:39:21 -0700 (PDT) Received: by 10.216.253.202 with HTTP; Sat, 26 Oct 2013 10:39:21 -0700 (PDT) X-Originating-IP: [78.147.11.171] In-Reply-To: <526ACC9B.4090204@oracle.com> References: <526ACC9B.4090204@oracle.com> Date: Sat, 26 Oct 2013 17:39:21 +0000 Message-ID: To: Christopher Jones Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Adding new MIME types for the CLI web server From: danack@basereality.com (Dan Ackroyd) 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'. 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 >