cvs: phpdoc /en/reference/mime_magic/functions mime-content-type.xml

From: Date: Sun, 21 Jan 2007 15:20:14 +0000
Subject: cvs: phpdoc /en/reference/mime_magic/functions mime-content-type.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374938@lists.php.net to get a copy of this message
didou Sun Jan 21 15:20:14 2007 UTC Modified files: /phpdoc/en/reference/mime_magic/functions mime-content-type.xml Log: WS, prepare for new doc style http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mime_magic/functions/mime-content-type.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/mime_magic/functions/mime-content-type.xml diff -u phpdoc/en/reference/mime_magic/functions/mime-content-type.xml:1.4 phpdoc/en/reference/mime_magic/functions/mime-content-type.xml:1.5 --- phpdoc/en/reference/mime_magic/functions/mime-content-type.xml:1.4 Fri Mar 11 16:11:50 2005 +++ phpdoc/en/reference/mime_magic/functions/mime-content-type.xml Sun Jan 21 15:20:13 2007 @@ -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:

« previous php.doc (#969374938) next »