didou Wed Jul 16 13:14:40 2003 EDT
Modified files:
/phpdoc/en/reference/imap/functions imap-append.xml imap-delete.xml
imap-fetch-overview.xml
imap-get-quota.xml
imap-get-quotaroot.xml
imap-getmailboxes.xml
imap-list.xml
imap-mime-header-decode.xml
imap-open.xml
imap-rfc822-parse-adrlist.xml
imap-rfc822-write-address.xml
imap-set-quota.xml
imap-setflag-full.xml
imap-status.xml
Log:
adding PHP tags in the examples
Index: phpdoc/en/reference/imap/functions/imap-append.xml
diff -u phpdoc/en/reference/imap/functions/imap-append.xml:1.5
phpdoc/en/reference/imap/functions/imap-append.xml:1.6
--- phpdoc/en/reference/imap/functions/imap-append.xml:1.5 Thu Feb 6 05:04:53
2003
+++ phpdoc/en/reference/imap/functions/imap-append.xml Wed Jul 16 13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-append">
<refnamediv>
@@ -36,6 +36,7 @@
<title><function>imap_append</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$stream = imap_open("{your.imap.host}INBOX.Drafts","username", "password");
$check = imap_check($stream);
@@ -53,6 +54,7 @@
print "Msg Count after append : ". $check->Nmsgs."\n";
imap_close($stream);
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-delete.xml
diff -u phpdoc/en/reference/imap/functions/imap-delete.xml:1.3
phpdoc/en/reference/imap/functions/imap-delete.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-delete.xml:1.3 Wed Oct 9 10:55:05
2002
+++ phpdoc/en/reference/imap/functions/imap-delete.xml Wed Jul 16 13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-delete">
<refnamediv>
@@ -44,6 +44,7 @@
<title><function>imap_delete</function> Beispiel</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open ("{your.imap.host}INBOX", "username", "password")
or die ("can't connect: " . imap_last_error());
@@ -56,6 +57,7 @@
$check = imap_mailboxmsginfo ($mbox);
print "Messages after expunge: " . $check->Nmsgs . "<br>\n" ;
imap_close ($mbox);
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-fetch-overview.xml
diff -u phpdoc/en/reference/imap/functions/imap-fetch-overview.xml:1.3
phpdoc/en/reference/imap/functions/imap-fetch-overview.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-fetch-overview.xml:1.3 Wed Oct 9
10:55:05 2002
+++ phpdoc/en/reference/imap/functions/imap-fetch-overview.xml Wed Jul 16 13:14:40
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.33 -->
<refentry id="function.imap-fetch-overview">
<refnamediv>
@@ -101,6 +101,7 @@
<title><function>imap_fetch_overview</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host:143}","username","password")
or die("can't connect: ".imap_last_error());
@@ -117,6 +118,7 @@
}
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-get-quota.xml
diff -u phpdoc/en/reference/imap/functions/imap-get-quota.xml:1.8
phpdoc/en/reference/imap/functions/imap-get-quota.xml:1.9
--- phpdoc/en/reference/imap/functions/imap-get-quota.xml:1.8 Thu Feb 13 09:39:29
2003
+++ phpdoc/en/reference/imap/functions/imap-get-quota.xml Wed Jul 16 13:14:40
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-get-quota">
<refnamediv>
@@ -43,6 +43,7 @@
<title><function>imap_get_quota</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
@@ -53,6 +54,7 @@
}
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
@@ -67,8 +69,8 @@
output.
</para>
<para>
- For backwards compatibility reasons, the originial access methods are
- still available for use, although it is suggested to update.
+ For backwards compatibility reasons, the originial access methods are
+ still available for use, although it is suggested to update.
</para>
<para>
<example>
@@ -76,6 +78,7 @@
example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
@@ -93,12 +96,15 @@
}
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
</para>
<para>
- See also <function>imap_open</function>, <function>imap_set_quota</function>,
<function>imap_get_quotaroot</function>.
+ See also <function>imap_open</function>,
+ <function>imap_set_quota</function> and
+ <function>imap_get_quotaroot</function>.
</para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/imap/functions/imap-get-quotaroot.xml
diff -u phpdoc/en/reference/imap/functions/imap-get-quotaroot.xml:1.2
phpdoc/en/reference/imap/functions/imap-get-quotaroot.xml:1.3
--- phpdoc/en/reference/imap/functions/imap-get-quotaroot.xml:1.2 Wed Oct 9
10:55:05 2002
+++ phpdoc/en/reference/imap/functions/imap-get-quotaroot.xml Wed Jul 16 13:14:40
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="function.imap-get-quotaroot">
<refnamediv>
<refname>imap_get_quotaroot</refname>
@@ -42,6 +42,7 @@
<title><function>imap_get_quotaroot</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host}","kalowsky","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
@@ -60,12 +61,15 @@
}
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
</para>
<para>
- See also <function>imap_open</function>, <function>imap_set_quota</function>,
<function>imap_get_quota</function>.
+ See also <function>imap_open</function>,
+ <function>imap_set_quota</function> and
+ <function>imap_get_quota</function>.
</para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/imap/functions/imap-getmailboxes.xml
diff -u phpdoc/en/reference/imap/functions/imap-getmailboxes.xml:1.3
phpdoc/en/reference/imap/functions/imap-getmailboxes.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-getmailboxes.xml:1.3 Wed Oct 9
10:55:05 2002
+++ phpdoc/en/reference/imap/functions/imap-getmailboxes.xml Wed Jul 16 13:14:40
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-getmailboxes">
<refnamediv>
@@ -79,6 +79,7 @@
<title><function>imap_getmailboxes</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
@@ -95,7 +96,8 @@
} else
print "imap_getmailboxes failed: ".imap_last_error()."\n";
-imap_close($mbox);
+imap_close($mbox);
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-list.xml
diff -u phpdoc/en/reference/imap/functions/imap-list.xml:1.1
phpdoc/en/reference/imap/functions/imap-list.xml:1.2
--- phpdoc/en/reference/imap/functions/imap-list.xml:1.1 Wed Oct 9 10:55:05
2002
+++ phpdoc/en/reference/imap/functions/imap-list.xml Wed Jul 16 13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="function.imap-list">
<refnamediv>
<refname>imap_list</refname>
@@ -23,6 +23,7 @@
<title><function>imap_list</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
@@ -34,7 +35,8 @@
} else
print "imap_list failed: ".imap_last_error()."\n";
-imap_close($mbox);
+imap_close($mbox);
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-mime-header-decode.xml
diff -u phpdoc/en/reference/imap/functions/imap-mime-header-decode.xml:1.3
phpdoc/en/reference/imap/functions/imap-mime-header-decode.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-mime-header-decode.xml:1.3 Wed May 7
17:31:30 2003
+++ phpdoc/en/reference/imap/functions/imap-mime-header-decode.xml Wed Jul 16
13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.33 -->
<refentry id="function.imap-mime-header-decode">
<refnamediv>
@@ -27,6 +27,7 @@
<title><function>imap_mime_header_decode</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$text="=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <[EMAIL PROTECTED]>";
$elements=imap_mime_header_decode($text);
@@ -34,6 +35,7 @@
echo "Charset: {$elements[$i]->charset}\n";
echo "Text: {$elements[$i]->text}\n\n";
}
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-open.xml
diff -u phpdoc/en/reference/imap/functions/imap-open.xml:1.3
phpdoc/en/reference/imap/functions/imap-open.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-open.xml:1.3 Wed Oct 9 10:55:05
2002
+++ phpdoc/en/reference/imap/functions/imap-open.xml Wed Jul 16 13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-open">
<refnamediv>
@@ -65,7 +65,9 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open ("{localhost:143}INBOX", "user_id", "password");
+?>
]]>
</programlisting>
</informalexample>
@@ -73,7 +75,9 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open ("{localhost:110/pop3}INBOX", "user_id", "password");
+?>
]]>
</programlisting>
</informalexample>
@@ -82,7 +86,9 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "user_id", "password");
+?>
]]>
</programlisting>
</informalexample>
@@ -91,7 +97,9 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", "user_id", "password");
+?>
]]>
</programlisting>
</informalexample>
@@ -99,7 +107,9 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$nntp = imap_open ("{localhost:119/nntp}comp.test", "", "");
+?>
]]>
</programlisting>
</informalexample>
@@ -111,6 +121,7 @@
<title><function>imap_open</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open ("{your.imap.host:143}", "username", "password");
echo "<p><h1>Mailboxes</h1>\n";
@@ -136,6 +147,7 @@
}
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml
diff -u phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml:1.3
phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml:1.3 Wed
May 7 17:31:30 2003
+++ phpdoc/en/reference/imap/functions/imap-rfc822-parse-adrlist.xml Wed Jul 16
13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-rfc822-parse-adrlist">
<refnamediv>
@@ -48,6 +48,7 @@
<title><function>imap_rfc822_parse_adrlist</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$address_string = "Hartmut Holzgraefe <[EMAIL PROTECTED]>, [EMAIL PROTECTED], root";
$address_array = imap_rfc822_parse_adrlist($address_string,"somedomain.net");
if(! is_array($address_array)) die("somethings wrong\n");
@@ -59,6 +60,7 @@
print "personal: ".$val->personal."<br>\n";
print "adl : ".$val->adl."<p>\n";
}
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-rfc822-write-address.xml
diff -u phpdoc/en/reference/imap/functions/imap-rfc822-write-address.xml:1.3
phpdoc/en/reference/imap/functions/imap-rfc822-write-address.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-rfc822-write-address.xml:1.3 Wed
May 7 17:31:30 2003
+++ phpdoc/en/reference/imap/functions/imap-rfc822-write-address.xml Wed Jul 16
13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-rfc822-write-address">
<refnamediv>
@@ -27,7 +27,9 @@
<title><function>imap_rfc822_write_address</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
print imap_rfc822_write_address("hartmut","cvs.php.net","Hartmut Holzgraefe")."\n";
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-set-quota.xml
diff -u phpdoc/en/reference/imap/functions/imap-set-quota.xml:1.4
phpdoc/en/reference/imap/functions/imap-set-quota.xml:1.5
--- phpdoc/en/reference/imap/functions/imap-set-quota.xml:1.4 Wed Oct 9 10:55:05
2002
+++ phpdoc/en/reference/imap/functions/imap-set-quota.xml Wed Jul 16 13:14:40
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-set-quota">
<refnamediv>
@@ -41,6 +41,7 @@
<title><function>imap_set_quota</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open ("{your.imap.host:143}", "mailadmin", "password");
if(!imap_set_quota($mbox, "user.kalowsky", 3000)) {
@@ -49,12 +50,14 @@
}
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
</para>
<para>
- See also <function>imap_open</function>, <function>imap_set_quota</function>.
+ See also <function>imap_open</function> and
+ <function>imap_set_quota</function>.
</para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/imap/functions/imap-setflag-full.xml
diff -u phpdoc/en/reference/imap/functions/imap-setflag-full.xml:1.4
phpdoc/en/reference/imap/functions/imap-setflag-full.xml:1.5
--- phpdoc/en/reference/imap/functions/imap-setflag-full.xml:1.4 Wed Oct 9
10:55:05 2002
+++ phpdoc/en/reference/imap/functions/imap-setflag-full.xml Wed Jul 16 13:14:40
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-setflag-full">
<refnamediv>
@@ -38,6 +38,7 @@
<title><function>imap_setflag_full</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host:143}","username","password")
or die("can't connect: ".imap_last_error());
@@ -47,6 +48,7 @@
print $status."\n";
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/imap/functions/imap-status.xml
diff -u phpdoc/en/reference/imap/functions/imap-status.xml:1.3
phpdoc/en/reference/imap/functions/imap-status.xml:1.4
--- phpdoc/en/reference/imap/functions/imap-status.xml:1.3 Wed Oct 9 10:55:05
2002
+++ phpdoc/en/reference/imap/functions/imap-status.xml Wed Jul 16 13:14:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-status">
<refnamediv>
@@ -67,6 +67,7 @@
<title><function>imap_status</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
@@ -81,6 +82,7 @@
print "imap_status failed: ".imap_last_error()."\n";
imap_close($mbox);
+?>
]]>
</programlisting>
</example>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php