For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > cvs: phpdoc /en/reference/imap/functions imap-reopen.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/imap/functions imap-reopen.xml
Hartmut Holzgraefe

2006-01-22, 9:56 pm

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/phpd...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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com