Sophie

Sophie

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

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
>Mailparse Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="mail"
HREF="function.mail.html"><LINK
REL="NEXT"
TITLE="mailparse_determine_best_xfer_encoding"
HREF="function.mailparse-determine-best-xfer-encoding.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
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.mail.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.mailparse-determine-best-xfer-encoding.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.mailparse"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>LXXX. Mailparse Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN107250"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mailparse.intro"
>简介</A
></H1
><P
>&#13;     Mailparse is an extension for parsing and working with email messages.
     It can deal with <A
HREF="http://www.faqs.org/rfcs/rfc822"
TARGET="_top"
>RFC 822</A
> and <A
HREF="http://www.faqs.org/rfcs/rfc2045"
TARGET="_top"
>RFC 2045</A
> (<TT
CLASS="literal"
>MIME</TT
>) compliant
     messages.
    </P
><P
>&#13;     Mailparse is stream based, which means that it does not keep in-memory
     copies of the files it processes - so it is very resource efficient when
     dealing with large messages.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      Mailparse requires the <A
HREF="ref.mbstring.html"
>mbstring</A
>
      extension.
     </P
></BLOCKQUOTE
></DIV
><P
>&#13;     本扩展已被移动到 <A
HREF="http://pecl.php.net"
TARGET="_top"
>PECL</A
> 库中且自以下版本起不再被绑定到 PHP 中:4.2.0.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mailparse.installation"
>安装</A
></H1
><P
>&#13;  本 <A
HREF="http://pecl.php.net"
TARGET="_top"
>PECL</A
> 扩展未绑定于 PHP 中。
  安装此 PECL 扩展库的信息可在手册中标题为 <A
HREF="install.pecl.html"
>PECL 扩展库安装</A
>的一章中找到。 更多信息如新版本,下载,源文件,维护者信息以及更新日志等可以在这里找到:
  <A
HREF="http://pecl.php.net/package/mailparse"
TARGET="_top"
>http://pecl.php.net/package/mailparse</A
>.
 </P
><P
>&#13;  In order to use these functions you must compile PHP with mailparse support
  by using the <CODE
CLASS="option"
>--enable-mailparse</CODE
> configure 
  option.
 </P
><P
>&#13;  Windows users will enable <TT
CLASS="filename"
>php_mailparse.dll</TT
> inside
  of <TT
CLASS="filename"
>php.ini</TT
> in order to use these functions.
  可以从 <A
HREF="http://www.php.net/downloads.php"
TARGET="_top"
>PHP
下载页面</A
>或者 <A
HREF="http://snaps.php.net/"
TARGET="_top"
>http://snaps.php.net/</A
>
下载此 <ACRONYM
CLASS="acronym"
>PECL</ACRONYM
> 扩展的
<ACRONYM
CLASS="acronym"
>DLL</ACRONYM
> 文件。
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mailparse.configuration"
>运行时配置</A
></H1
><P
>这些函数的行为受 <TT
CLASS="filename"
>php.ini</TT
> 的影响。</P
><P
>&#13; <DIV
CLASS="table"
><A
NAME="AEN107283"
></A
><P
><B
>表 1. Mailparse configuration options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><COL><THEAD
><TR
><TH
>Name</TH
><TH
>Default</TH
><TH
>Changeable</TH
><TH
>Changelog</TH
></TR
></THEAD
><TBODY
><TR
><TD
>mailparse.def_charset</TD
><TD
>"us-ascii"</TD
><TD
>PHP_INI_ALL</TD
><TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
></DIV
>
 有关 PHP_INI_* 常量进一步的细节与定义参见<A
HREF="ini.html"
>附录 H</A
>。
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mailparse.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>MAILPARSE_EXTRACT_OUTPUT</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;    </P
></DD
><DT
><TT
CLASS="constant"
><B
>MAILPARSE_EXTRACT_STREAM</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;    </P
></DD
><DT
><TT
CLASS="constant"
><B
>MAILPARSE_EXTRACT_RETURN</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.mailparse-determine-best-xfer-encoding.html"
>mailparse_determine_best_xfer_encoding</A
>&nbsp;--&nbsp;Gets the best way of encoding</DT
><DT
><A
HREF="function.mailparse-msg-create.html"
>mailparse_msg_create</A
>&nbsp;--&nbsp;Create a mime mail resource</DT
><DT
><A
HREF="function.mailparse-msg-extract-part-file.html"
>mailparse_msg_extract_part_file</A
>&nbsp;--&nbsp;Extracts/decodes a message section</DT
><DT
><A
HREF="function.mailparse-msg-extract-part.html"
>mailparse_msg_extract_part</A
>&nbsp;--&nbsp;
   Extracts/decodes a message section
  </DT
><DT
><A
HREF="function.mailparse-msg-extract-whole-part-file.html"
>mailparse_msg_extract_whole_part_file</A
>&nbsp;--&nbsp;Extracts a message section including headers without decoding the transfer encoding</DT
><DT
><A
HREF="function.mailparse-msg-free.html"
>mailparse_msg_free</A
>&nbsp;--&nbsp;Frees a MIME resource</DT
><DT
><A
HREF="function.mailparse-msg-get-part-data.html"
>mailparse_msg_get_part_data</A
>&nbsp;--&nbsp;Returns an associative array of info about the message</DT
><DT
><A
HREF="function.mailparse-msg-get-part.html"
>mailparse_msg_get_part</A
>&nbsp;--&nbsp;Returns a handle on a given section in a mimemessage</DT
><DT
><A
HREF="function.mailparse-msg-get-structure.html"
>mailparse_msg_get_structure</A
>&nbsp;--&nbsp;Returns an array of mime section names in the supplied message</DT
><DT
><A
HREF="function.mailparse-msg-parse-file.html"
>mailparse_msg_parse_file</A
>&nbsp;--&nbsp;Parses a file</DT
><DT
><A
HREF="function.mailparse-msg-parse.html"
>mailparse_msg_parse</A
>&nbsp;--&nbsp;Incrementally parse data into buffer</DT
><DT
><A
HREF="function.mailparse-rfc822-parse-addresses.html"
>mailparse_rfc822_parse_addresses</A
>&nbsp;--&nbsp;Parse RFC 822 compliant addresses</DT
><DT
><A
HREF="function.mailparse-stream-encode.html"
>mailparse_stream_encode</A
>&nbsp;--&nbsp;
   Streams data from source file pointer, apply encoding and write to destfp 
  </DT
><DT
><A
HREF="function.mailparse-uudecode-all.html"
>mailparse_uudecode_all</A
>&nbsp;--&nbsp;
   Scans the data from fp and extract each embedded uuencoded file
  </DT
></DL
></DIV
></DIV
></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.mail.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.mailparse-determine-best-xfer-encoding.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>mail</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>mailparse_determine_best_xfer_encoding</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>