How to create a custom magic file database

后端 未结 3 2078
有刺的猬
有刺的猬 2020-12-14 01:41

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.

I

3条回答
  •  一整个雨季
    2020-12-14 02:25

    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.


    Also see http://cweiske.de/tagebuch/custom-magic-db.htm

提交回复
热议问题