Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 3114

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>YP/NIS Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Function Reference"
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=ISO-8859-1"></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 Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.yaz-wait.html"
ACCESSKEY="P"
>Prev</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"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.nis"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>CXI. YP/NIS Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN98203"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.intro"
></A
>Introduction</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
>Note: </B
>This extension is not
available on Windows platforms.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.requirements"
></A
>Requirements</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
>Installation</H1
><P
>&#13;  To get these functions to work, you have to configure PHP with
  <TT
CLASS="option"
>--enable-yp</TT
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.configuration"
></A
>Runtime Configuration</H1
><P
>This extension has no configuration directives defined in <TT
CLASS="filename"
>php.ini</TT
>.</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="nis.constants"
></A
>Predefined Constants</H1
><P
>&#13;The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>YPERR_BADARGS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_BADDB</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_BUSY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_DOMAIN</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_KEY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_MAP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_NODOM</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_NOMORE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_PMAP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_RESRC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_RPC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_YPBIND</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_YPERR</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_YPSERV</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>YPERR_VERS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
>integer</A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</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 previous operation
   </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"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.yp-all.html"
ACCESSKEY="N"
>Next</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"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>yp_all</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>