php-doc-en/reference/mime_magic/book.xml
2012-06-09 17:34:56 +00:00

61 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- Membership: bundled -->
<!-- State: deprecated -->
<book xml:id="book.mime-magic" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="bundled" ?>
<title>Mimetype</title>
<!-- {{{ preface -->
<preface xml:id="intro.mime-magic">
&reftitle.intro;
<warning>
<para>
This extension has been deprecated as the PECL extension
<link linkend="book.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>
</preface>
<!-- }}} -->
&reference.mime-magic.setup;
&reference.mime-magic.constants;
</book>
<!-- 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:"~/.phpdoc/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
-->