Sophie

Sophie

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

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
>YP/NIS 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="yaz_wait"
HREF="function.yaz-wait.html"><LINK
REL="NEXT"
TITLE="yp_all"
HREF="function.yp-all.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.yaz-wait.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.yp-all.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.nis"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>CLXXXVI. YP/NIS Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN248861"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.intro"
>简介</A
></H1
><P
>&#13;     NIS (formerly called Yellow Pages) allows network management of
     important administrative files (e.g. the password file). For more
     information refer to the NIS manpage and <A
HREF="http://www.tldp.org/HOWTO/NIS-HOWTO/index.html"
TARGET="_top"
>&#13;     The Linux NIS(YP)/NYS/NIS+ HOWTO</A
>. There is also a book called <A
HREF="http://www.oreilly.com/catalog/nfs/noframes.html"
TARGET="_top"
>Managing NFS and NIS</A
> by Hal Stern.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      本扩展已被移动到 <A
HREF="http://pecl.php.net"
TARGET="_top"
>PECL</A
> 库中且自以下版本起不再被绑定到 PHP 中:5.1.0.
     </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>本扩展模块在 Windows 平台下不可用。</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.requirements"
>需求</A
></H1
><P
>&#13;     None besides functions from standard Unix libraries which are
     always available (either <TT
CLASS="filename"
>libc</TT
> or 
     <TT
CLASS="filename"
>libnsl</TT
>, configure will detect which one to use).
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.installation"
>安装</A
></H1
><P
>&#13;  To get these functions to work, you have to configure PHP with
  <CODE
CLASS="option"
>--enable-yp</CODE
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.configuration"
>运行时配置</A
></H1
><P
>本扩展模块在 <TT
CLASS="filename"
>php.ini</TT
> 中未定义任何配置选项。</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>YPERR_ACCESS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     access violation (this has only been added recently and is only available from PECL CVS for now)
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_BADARGS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     The function arguments are bad 
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_BADDB</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     YP database is bad
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_BUSY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Database busy
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_DOMAIN</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     cannot bind to server in this domain
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_KEY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     no such key in map
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_MAP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     no such map in server's domain
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_NODOM</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Local domain name not set
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_NOMORE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     No more records in map database
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_PMAP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Can't communicate with portmapper 
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_RESRC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     resource allocation failure 
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_RPC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     RPC failure - domain has been unbound
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_YPBIND</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Can't communicate with ypbind
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_YPERR</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     internal yp server or client error 
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_YPSERV</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Can't communicate with ypserv
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_VERS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     YP version mismatch
    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.yp-all.html"
>yp_all</A
>&nbsp;--&nbsp;Traverse the map and call a function on each entry</DT
><DT
><A
HREF="function.yp-cat.html"
>yp_cat</A
>&nbsp;--&nbsp;Return an array containing the entire map</DT
><DT
><A
HREF="function.yp-err-string.html"
>yp_err_string</A
>&nbsp;--&nbsp;Returns the error string associated with the given error code</DT
><DT
><A
HREF="function.yp-errno.html"
>yp_errno</A
>&nbsp;--&nbsp;Returns the error code of the previous operation</DT
><DT
><A
HREF="function.yp-first.html"
>yp_first</A
>&nbsp;--&nbsp;Returns the first key-value pair from the named map</DT
><DT
><A
HREF="function.yp-get-default-domain.html"
>yp_get_default_domain</A
>&nbsp;--&nbsp;Fetches the machine's default NIS domain</DT
><DT
><A
HREF="function.yp-master.html"
>yp_master</A
>&nbsp;--&nbsp;Returns the machine name of the master NIS server for a map</DT
><DT
><A
HREF="function.yp-match.html"
>yp_match</A
>&nbsp;--&nbsp;Returns the matched line</DT
><DT
><A
HREF="function.yp-next.html"
>yp_next</A
>&nbsp;--&nbsp;Returns the next key-value pair in the named map</DT
><DT
><A
HREF="function.yp-order.html"
>yp_order</A
>&nbsp;--&nbsp;Returns the order number for a map</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.yaz-wait.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.yp-all.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>yaz_wait</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>yp_all</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>