cvs: peardoc /en/package/mail/mail-mimedecode example.xml

From: Date: Sun, 22 Jun 2003 12:57:37 +0000
Subject: cvs: peardoc /en/package/mail/mail-mimedecode example.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-978@lists.php.net to get a copy of this message
mj Sun Jun 22 08:57:37 2003 EDT Modified files: /peardoc/en/package/mail/mail-mimedecode example.xml Log: * Lowercase true and false # Sorry for mixing this with a whitespace commit. Index: peardoc/en/package/mail/mail-mimedecode/example.xml diff -u peardoc/en/package/mail/mail-mimedecode/example.xml:1.1.1.1 peardoc/en/package/mail/mail-mimedecode/example.xml:1.2 --- peardoc/en/package/mail/mail-mimedecode/example.xml:1.1.1.1 Mon Sep 30 23:23:42 2002 +++ peardoc/en/package/mail/mail-mimedecode/example.xml Sun Jun 22 08:57:37 2003 @@ -1,54 +1,52 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.mail.mail-mimedecode.example"> <refnamediv> <refname>Mail_mimeDecode - Example</refname> <refpurpose>decode an email</refpurpose> - </refnamediv> - <refsect1> - &title.example; - <example> - <title>Decode an email</title> - <programlisting role="php"> - <![CDATA[ + </refnamediv> + <refsect1> + &title.example; + <example> + <title>Decode an email</title> + <programlisting role="php"> + <![CDATA[ <?php - -include 'Mail/mimeDecode.php'; +require_once 'Mail/mimeDecode.php'; ... -$params['include_bodies'] = TRUE; -$params['decode_bodies'] = TRUE; -$params['decode_headers'] = TRUE; +$params['include_bodies'] = true; +$params['decode_bodies'] = true; +$params['decode_headers'] = true; $decoder = new Mail_mimeDecode($input); $structure = $decoder->decode($params); - ?> - ]]> - </programlisting> - This example calls the decode function statically (ie no object, - straight function call) and then passes the structure to the - <link linkend="core.mail.mimedecode.getxml"><function>getXML</function> - </link> function. - <programlisting role="php"> - <![CDATA[ + ]]> + </programlisting> + This example calls the decode function statically (ie no object, + straight function call) and then passes the structure to the + <link linkend="core.mail.mimedecode.getxml"><function>getXML</function> + </link> function. + <programlisting role="php"> + <![CDATA[ <?php ... -$params['include_bodies'] = TRUE; -$params['decode_bodies'] = FALSE; -$params['decode_headers'] = TRUE; +$params['include_bodies'] = true; +$params['decode_bodies'] = false; +$params['decode_headers'] = true; $params['input'] = $input; $params['crlf'] = "\r\n"; $structure = Mail_mimeDecode::decode($params); $xml = Mail_mimeDecode::getXML($structure); -?> - ]]> - </programlisting> - </para> - </example> - </refsect1> - </refentry> +?> + ]]> + </programlisting> + </para> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml

« previous php.pear.doc (#978) next »