Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 7282

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>imap_fetchstructure</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="IMAP, POP3 and NNTP Functions"
HREF="ref.imap.html"><LINK
REL="PREVIOUS"
TITLE="imap_fetchheader"
HREF="function.imap-fetchheader.html"><LINK
REL="NEXT"
TITLE="imap_get_quota"
HREF="function.imap-get-quota.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></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"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.imap-fetchheader.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.imap-get-quota.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.imap-fetchstructure"
></A
>imap_fetchstructure</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN96232"
></A
><P
>    (PHP 3, PHP 4, PHP 5)</P
>imap_fetchstructure&nbsp;--&nbsp;Read the structure of a particular message</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96235"
></A
><H2
>说明</H2
>object <B
CLASS="methodname"
>imap_fetchstructure</B
> ( resource imap_stream, int msg_number [, int options] )<BR
></BR
><P
>&#13;   Fetches all the structured information for a given message. 
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96250"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>&#13;imap_stream</CODE
></DT
><DD
><P
>An IMAP stream returned by 
<A
HREF="function.imap-open.html"
><B
CLASS="function"
>imap_open()</B
></A
>.</P
></DD
><DT
><CODE
CLASS="parameter"
>msg_number</CODE
></DT
><DD
><P
>&#13;       The message number
      </P
></DD
><DT
><CODE
CLASS="parameter"
>options</CODE
></DT
><DD
><P
>&#13;       This optional parameter only has a single option, 
       <TT
CLASS="constant"
><B
>FT_UID</B
></TT
>, which tells the function to treat the
       <CODE
CLASS="parameter"
>msg_number</CODE
> argument as a 
       <TT
CLASS="literal"
>UID</TT
>.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96273"
></A
><H2
>返回值</H2
><P
>&#13;   Returns an object includes the envelope, internal date, size, flags and
   body structure along with a similar object for each mime attachment. The
   structure of the returned objects is as follows:
  </P
><P
>&#13;   <DIV
CLASS="table"
><A
NAME="AEN96277"
></A
><P
><B
>表 1. 
     Returned Objects for <B
CLASS="function"
>imap_fetchstructure()</B
>
    </B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><TBODY
><TR
><TD
>type</TD
><TD
>Primary body type</TD
></TR
><TR
><TD
>encoding</TD
><TD
>Body transfer encoding</TD
></TR
><TR
><TD
>ifsubtype</TD
><TD
><TT
CLASS="constant"
><B
>TRUE</B
></TT
> if there is a subtype string</TD
></TR
><TR
><TD
>subtype</TD
><TD
><ACRONYM
CLASS="acronym"
>MIME</ACRONYM
> subtype</TD
></TR
><TR
><TD
>ifdescription</TD
><TD
><TT
CLASS="constant"
><B
>TRUE</B
></TT
> if there is a description string</TD
></TR
><TR
><TD
>description</TD
><TD
>Content description string</TD
></TR
><TR
><TD
>ifid</TD
><TD
><TT
CLASS="constant"
><B
>TRUE</B
></TT
> if there is an identification string</TD
></TR
><TR
><TD
>id</TD
><TD
>Identification string</TD
></TR
><TR
><TD
>lines</TD
><TD
>Number of lines</TD
></TR
><TR
><TD
>bytes</TD
><TD
>Number of bytes</TD
></TR
><TR
><TD
>ifdisposition</TD
><TD
><TT
CLASS="constant"
><B
>TRUE</B
></TT
> if there is a disposition string</TD
></TR
><TR
><TD
>disposition</TD
><TD
>Disposition string</TD
></TR
><TR
><TD
>ifdparameters</TD
><TD
><TT
CLASS="constant"
><B
>TRUE</B
></TT
> if the dparameters array exists</TD
></TR
><TR
><TD
>dparameters</TD
><TD
>An array of objects where each object has an "attribute" and a
       "value" property corresponding to the parameters on the
       Content-disposition <ACRONYM
CLASS="acronym"
>MIME</ACRONYM
>header.</TD
></TR
><TR
><TD
>ifparameters</TD
><TD
><TT
CLASS="constant"
><B
>TRUE</B
></TT
> if the parameters array exists</TD
></TR
><TR
><TD
>parameters</TD
><TD
>An array of objects where each object has an "attribute" and
       a "value" property.</TD
></TR
><TR
><TD
>parts</TD
><TD
>An array of objects identical in structure to the top-level
       object, each of which corresponds to a <ACRONYM
CLASS="acronym"
>MIME</ACRONYM
> body
       part.</TD
></TR
></TBODY
></TABLE
></DIV
>
  </P
><P
>&#13;   <DIV
CLASS="table"
><A
NAME="AEN96343"
></A
><P
><B
>表 2. Primary body type</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><TBODY
><TR
><TD
>0</TD
><TD
>text</TD
></TR
><TR
><TD
>1</TD
><TD
>multipart</TD
></TR
><TR
><TD
>2</TD
><TD
>message</TD
></TR
><TR
><TD
>3</TD
><TD
>application</TD
></TR
><TR
><TD
>4</TD
><TD
>audio</TD
></TR
><TR
><TD
>5</TD
><TD
>image</TD
></TR
><TR
><TD
>6</TD
><TD
>video</TD
></TR
><TR
><TD
>7</TD
><TD
>other</TD
></TR
></TBODY
></TABLE
></DIV
>
  </P
><P
>&#13;   <DIV
CLASS="table"
><A
NAME="AEN96372"
></A
><P
><B
>表 3. Transfer encodings</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><TBODY
><TR
><TD
>0</TD
><TD
>7BIT</TD
></TR
><TR
><TD
>1</TD
><TD
>8BIT</TD
></TR
><TR
><TD
>2</TD
><TD
>BINARY</TD
></TR
><TR
><TD
>3</TD
><TD
>BASE64</TD
></TR
><TR
><TD
>4</TD
><TD
>QUOTED-PRINTABLE</TD
></TR
><TR
><TD
>5</TD
><TD
>OTHER</TD
></TR
></TBODY
></TABLE
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN96394"
></A
><H2
>参见</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.imap-fetchbody.html"
><B
CLASS="function"
>imap_fetchbody()</B
></A
></TD
></TR
><TR
><TD
><A
HREF="function.imap-bodystruct.html"
><B
CLASS="function"
>imap_bodystruct()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </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-fetchheader.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.imap-get-quota.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>imap_fetchheader</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.imap.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>imap_get_quota</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>