The unix file command uses a \"magic\" file database to determine which type of data a file contains, independently of the file\'s name or extension.
file
I
I'm using the following magic file now for my unit tests:
0 search/1/c =
With it, every php file (beginning with ) will get the MIME type text/x-unittest.
) will get the MIME type text/x-unittest.
text/x-unittest
Also see http://cweiske.de/tagebuch/custom-magic-db.htm