hholzgra Mon Jan 23 01:19:28 2006 UTC
Modified files: /phpdoc/en/reference/imap/functions imap-reopen.xml Log: fixed parameter type and added simple example http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/imap/functions/imap-reopen.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/imap/functions/imap-reopen.xml diff -u phpdoc/en/reference/imap/functions/imap-reopen.xml:1.6 phpdoc/en/reference/imap/functions/imap-reopen.xml:1.7 --- phpdoc/en/reference/imap/functions/imap-reopen.xml:1.6 Mon Mar 8 09:18:43 2004 +++ phpdoc/en/reference/imap/functions/imap-reopen.xml Mon Jan 23 01:19:28 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 --> <refentry id="function.imap-reopen"> <refnamediv> @@ -12,7 +12,7 @@ <type>bool</type><methodname>imap_reopen</methodname> <methodparam><type>resource</type><parameter>imap_stream</parameter></methodparam> <methodparam><type>string</type><parameter>mailbox</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>options</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> This function reopens the specified stream to a new @@ -50,7 +50,21 @@ <para> &return.success; </para> + <example> + <title><function>imap_reopen</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$mbox = imap_open("{mailget.mysql.com:143/novalidate-cert}INBOX", "hholzgraefe", "nomore6nomore6") or die(join(", ", imap_errors())); +// ... +imap_reopen($mbox, "{mailget.mysql.com:143}Inbox.Sent") or die(join(", ", imap_errors())); +// .. +?> +]]> + </programlisting> + </example> </refsect1> + </refentry> <!-- Keep this comment at the end of the file