2002-06-11 10:14:50 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-12-10 17:06:11 +00:00
|
|
|
<!-- $Revision: 1.10 $ -->
|
2005-09-04 19:39:32 +00:00
|
|
|
<!-- Purpose: fileprocess.file -->
|
|
|
|
<!-- Membership: bundled -->
|
|
|
|
<!-- State: deprecated -->
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<reference xml:id="ref.mime-magic" xmlns="http://docbook.org/ns/docbook">
|
2002-06-11 10:14:50 +00:00
|
|
|
<title>Mimetype Functions</title>
|
|
|
|
<titleabbrev>Mimetype</titleabbrev>
|
|
|
|
|
|
|
|
<partintro>
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="mime-magic.intro">
|
2002-06-11 10:14:50 +00:00
|
|
|
&reftitle.intro;
|
2004-04-22 01:35:10 +00:00
|
|
|
<warning>
|
|
|
|
<para>
|
|
|
|
This extension has been deprecated as the PECL extension
|
2006-03-13 10:23:29 +00:00
|
|
|
<link linkend="ref.fileinfo">Fileinfo</link>
|
2004-04-25 17:35:23 +00:00
|
|
|
provides the same functionality (and more) in a much cleaner way.
|
2004-04-22 01:35:10 +00:00
|
|
|
</para>
|
|
|
|
</warning>
|
2002-06-11 10:14:50 +00:00
|
|
|
<para>
|
|
|
|
The functions in this module try to guess the content type
|
|
|
|
and encoding of a file by looking for certain
|
|
|
|
<emphasis>magic</emphasis> byte sequences at specific
|
|
|
|
positions within the file. While this is not a bullet proof
|
|
|
|
approach the heuristics used do a very good job.
|
|
|
|
</para>
|
|
|
|
<para>
|
2003-12-18 14:14:41 +00:00
|
|
|
This extension is derived from Apache mod_mime_magic,
|
2002-06-11 10:14:50 +00:00
|
|
|
which is itself based on the <filename>file</filename>
|
2003-12-18 14:14:41 +00:00
|
|
|
command maintained by Ian F. Darwin. See the source code for
|
2002-06-11 10:14:50 +00:00
|
|
|
further historic and copyright information.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="mime-magic.requirements">
|
2002-06-11 10:14:50 +00:00
|
|
|
&reftitle.required;
|
|
|
|
&no.requirement;
|
|
|
|
</section>
|
2002-11-30 15:33:22 +00:00
|
|
|
|
|
|
|
&reference.mime-magic.configure;
|
2002-06-11 10:14:50 +00:00
|
|
|
|
2002-09-14 21:26:46 +00:00
|
|
|
&reference.mime-magic.ini;
|
2002-06-11 10:14:50 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="mime-magic.resources">
|
2002-06-11 10:14:50 +00:00
|
|
|
&reftitle.resources;
|
|
|
|
&no.resource;
|
|
|
|
</section>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="mime-magic.constants">
|
2002-06-11 10:14:50 +00:00
|
|
|
&reftitle.constants;
|
|
|
|
&no.constants;
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</partintro>
|
|
|
|
|
2007-12-10 17:06:11 +00:00
|
|
|
&reference.mime-magic.entities.functions;
|
2002-06-11 10:14:50 +00:00
|
|
|
|
|
|
|
</reference>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|
|
|
|
|