Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Tuesday, December 1, 2009

Apache 2.2 mime_magic_module and PHP scripts

The task: force Apache to handle PHP scripts without any file extensions.
Apache is able to determine MIME of file in two ways:
  1. Using mime_module by extension
  2. Using mime_magic_module by the first several bytes of file
I have investigated the second way.