| jurgen at telebusiness dot net 2005-09-27, 7:55 am |
| ID: 33678
User updated by: jurgen at telebusiness dot net
Reported By: jurgen at telebusiness dot net
Status: Bogus
Bug Type: Documentation problem
Operating System: ALL
PHP Version: Irrelevant
New Comment:
This is NOT for technical reasons. It's because PHP does not claim the
extension php phps with IANA.
Ref: The current list is maintained at
http://www.iana.org/assignments/media-types/index.html. This simplifies
the httpd.conf file by providing the majority of media-type definitions,
and may be overridden by AddType directives as needed. You should not
edit the mime.types file, because it may be replaced when you upgrade
your server.
The purpose of the mime.types IS to handle special extensions with
apache. The addtype overwrites this file, so I stick to my point. Up
to the PHP Staff to register php and phps with IANA.
Previous Comments:
------------------------------------------------------------------------
[2005-09-26 11:31:16] vrana@php.net
http://httpd.apache.org/docs/2.0/mo...e.html#addtype: "It is
recommended that new MIME types be added using the AddType directive
rather than changing the TypesConfig file."
------------------------------------------------------------------------
[2005-09-21 19:51:31] jurgen at telebusiness dot net
It works the way I told.
So if it is not the right way, tell us the reason. Mime;types is the
place to put Your custom related extensions to apache,
and .php is one of them.
------------------------------------------------------------------------
[2005-09-19 14:11:32] sniper@php.net
Definately not correct way to add the types.
------------------------------------------------------------------------
[2005-07-13 14:12:49] jurgen at telebusiness dot net
Description:
------------
Currently I disagree with this section in INSTALL.TXT:
(Recurring in seceral sections !!!)
# Add this line inside the <IfModule mod_mime.c> conditional brace
AddType application/x-httpd-php .php
# For syntax highlighted .phps files, also add
AddType application/x-httpd-php-source .phps
Because: AddType OVERWRITES mimes.types definitions.
So don't use Addtype in httpd.conf but change mimes.types
with: (append after line application/pgp-signature)
application/x-httpd-php php
application/x-httpd-php-source phps
This works both for windows and unix.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33678&edit=1
|