mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS, prepare for new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@227750 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
642813f7ff
commit
8cbba5cccf
1 changed files with 30 additions and 30 deletions
|
@ -1,44 +1,44 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.mime-content-type">
|
||||
<refnamediv>
|
||||
<refname>mime_content_type</refname>
|
||||
<refpurpose>Detect MIME Content-type for a file</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>mime_content_type</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the MIME content type for a file as determined by using
|
||||
information from the <filename>magic.mime</filename> file.
|
||||
Content types are returned in MIME format, like <literal>text/plain</literal>
|
||||
or <literal>application/octet-stream</literal>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mime_content_type</function> example</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.mime-content-type">
|
||||
<refnamediv>
|
||||
<refname>mime_content_type</refname>
|
||||
<refpurpose>Detect MIME Content-type for a file</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>mime_content_type</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the MIME content type for a file as determined by using
|
||||
information from the <filename>magic.mime</filename> file.
|
||||
Content types are returned in MIME format, like <literal>text/plain</literal>
|
||||
or <literal>application/octet-stream</literal>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mime_content_type</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo mime_content_type('php.gif') . "\n";
|
||||
echo mime_content_type('test.php');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
image/gif
|
||||
text/plain
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue