Recommend this page to a friend! |
Classes of Martin Latter | PHP Detect File Type | README.md | Download |
|
DownloadFile IdentifierIdentify a file through MIME type and file signature detection.PurposeDetect a file's type through MIME type information and file signature (header) bytes. (File extensions are ignored.) Uses*nix systems have the Nevertheless, this command is not always available. The main uses of File Identifier are:
Example Usage
File SignaturesThe file signature data (FileSignatures.php) contain a limited range of common file type signatures in hexadecimal bytes. This data array can be easily extended with additional and custom file signatures. LicenseFile Identifier is released under the GPL v.3. |