The MIME_Magic:: class provides an interface to determine a MIME type for various content, if it provided with different levels of information.
$Horde: framework/MIME/MIME/Magic.php,v 1.52.8.18 2009/01/06 15:23:20 jan Exp $
Copyright 1999-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Located in /MIME/MIME/Magic.php (line 21)
Uses variants of the UNIX "file" command to attempt to determine the MIME type of an unknown byte stream.
Uses variants of the UNIX "file" command to attempt to determine the MIME type of an unknown file.
Attempt to convert a file extension to a MIME type, based on the global Horde and application specific config files.
If we cannot map the file extension to a specific type, then we fall back to a custom MIME handler 'x-extension/$ext', which can be used as a normal MIME type internally throughout Horde.
Attempt to convert a filename to a MIME type, based on the global Horde and application specific config files.
Attempt to convert a MIME type to a file extension, based on the global Horde and application specific config files.
If we cannot map the type to a file extension, we return false.
Documentation generated on Sun, 30 Jan 2011 05:19:24 +0000 by phpDocumentor 1.4.3