This class is used to classify the given file using some magic bytes characteristic to a particular file type. The classification information can be a MIME type or just text describing the file.
This method is slower than determining the type by file suffix but on the other hand reduces the risk of fail positives during the test.
The magic file consists of ASCII characters defining the magic numbers for different file types. Each row has 4 to 5 columns, empty and commented lines (those starting with a hash character) are ignored. Columns are described below.
Located in /Magic.php (line 79)
Reads the magic information from given magic file.
Returns the recognized MIME type/description of the given file. The type is determined by the content using magic bytes characteristic for the particular file type.
If the type could not be found, the function returns the default value, or false.
Documentation generated on Fri, 05 Sep 2008 20:18:59 +0300 by phpDocumentor 1.4.1