php-doc-en/reference/mime_magic/reference.xml

81 lines
2.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- Purpose: fileprocess.file -->
<!-- Membership: bundled -->
<!-- State: deprecated -->
<reference xml:id="ref.mime-magic" xmlns="http://docbook.org/ns/docbook">
<title>Mimetype Functions</title>
<titleabbrev>Mimetype</titleabbrev>
<partintro>
<section xml:id="mime-magic.intro">
&reftitle.intro;
<warning>
<para>
This extension has been deprecated as the PECL extension
<link linkend="ref.fileinfo">Fileinfo</link>
provides the same functionality (and more) in a much cleaner way.
</para>
</warning>
<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>
This extension is derived from Apache mod_mime_magic,
which is itself based on the <filename>file</filename>
command maintained by Ian F. Darwin. See the source code for
further historic and copyright information.
</para>
</section>
<section xml:id="mime-magic.requirements">
&reftitle.required;
&no.requirement;
</section>
&reference.mime-magic.configure;
&reference.mime-magic.ini;
<section xml:id="mime-magic.resources">
&reftitle.resources;
&no.resource;
</section>
<section xml:id="mime-magic.constants">
&reftitle.constants;
&no.constants;
</section>
</partintro>
&reference.mime-magic.entities.functions;
</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
-->