Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 1415

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>imap_status</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="IMAP, POP3 ºi NNTP - funcþii"
HREF="ref.imap.html"><LINK
REL="PREVIOUS"
TITLE="imap_sort"
HREF="function.imap-sort.html"><LINK
REL="NEXT"
TITLE="imap_subscribe"
HREF="function.imap-subscribe.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.imap-sort.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.imap-subscribe.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.imap-status"
></A
>imap_status</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN43220"
></A
><P
>    (PHP 3&#62;= 3.0.4, PHP 4 , PHP 5)</P
>imap_status&nbsp;--&nbsp;
     This function returns status information on a mailbox other than
     the current one
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN43223"
></A
><H2
>Descriere</H2
>object <B
CLASS="methodname"
>imap_status</B
> ( int imap_stream, string mailbox, int options)<BR
></BR
><P
>&#13;     This function returns an object containing status
     information. Valid flags are:
     <P
></P
><UL
><LI
><P
>&#13;        SA_MESSAGES - set status-&#62;messages to the number of messages
        in the mailbox
       </P
></LI
><LI
><P
>&#13;        SA_RECENT - set status-&#62;recent to the number of recent
        messages in the mailbox
       </P
></LI
><LI
><P
>&#13;        SA_UNSEEN - set status-&#62;unseen to the number of unseen (new)
        messages in the mailbox
       </P
></LI
><LI
><P
>&#13;        SA_UIDNEXT - set status-&#62;uidnext to the next uid to be used in
        the mailbox
       </P
></LI
><LI
><P
>&#13;        SA_UIDVALIDITY - set status-&#62;uidvalidity to a constant that
        changes when uids for the mailbox may no longer be valid
       </P
></LI
><LI
><P
>&#13;        SA_ALL - set all of the above
       </P
></LI
></UL
>
    </P
><P
>&#13;     status-&#62;flags is also set, which contains a bitmask which can be
     checked against any of the above constants.
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN43253"
></A
><P
><B
>Exemplu 1. <B
CLASS="function"
>imap_status()</B
> example</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or die("can't connect: ".imap_last_error());<br /> <br />$status = imap_status($mbox,"{your.imap.host}INBOX",SA_ALL);<br />if($status) {<br />&nbsp;&nbsp;print("Messages:&nbsp;&nbsp;&nbsp;". $status-&gt;messages&nbsp;&nbsp;&nbsp;)."&lt;br&gt;\n";<br />&nbsp;&nbsp;print("Recent:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;". $status-&gt;recent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)."&lt;br&gt;\n";<br />&nbsp;&nbsp;print("Unseen:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;". $status-&gt;unseen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)."&lt;br&gt;\n";<br />&nbsp;&nbsp;print("UIDnext:&nbsp;&nbsp;&nbsp;&nbsp;". $status-&gt;uidnext&nbsp;&nbsp;&nbsp;&nbsp;)."&lt;br&gt;\n";<br />&nbsp;&nbsp;print("UIDvalidity:". $status-&gt;uidvalidity)."&lt;br&gt;\n"; <br />} else<br />&nbsp;&nbsp;print "imap_status failed: ".imap_last_error()."\n";<br /> <br />imap_close($mbox);</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.imap-sort.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.imap-subscribe.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>imap_sort</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.imap.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>imap_subscribe</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>