Sophie

Sophie

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

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
>posix_getpwnam</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="POSIX Functions"
HREF="ref.posix.html"><LINK
REL="PREVIOUS"
TITLE="posix_getppid"
HREF="function.posix-getppid.html"><LINK
REL="NEXT"
TITLE="posix_getpwuid"
HREF="function.posix-getpwuid.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.posix-getppid.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.posix-getpwuid.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.posix-getpwnam"
></A
>posix_getpwnam</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN183144"
></A
><P
>    (PHP 3 &#62;= 3.0.13, PHP 4, PHP 5)</P
>posix_getpwnam&nbsp;--&nbsp;Return info about a user by username</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN183147"
></A
><H2
>说明</H2
>array <B
CLASS="methodname"
>posix_getpwnam</B
> ( string username )<BR
></BR
><P
>&#13;   Returns an information about the given user.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN183156"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>username</CODE
></DT
><DD
><P
>&#13;       An alphanumeric username.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN183165"
></A
><H2
>返回值</H2
><P
>&#13;   The array elements returned are:
   <DIV
CLASS="table"
><A
NAME="AEN183168"
></A
><P
><B
>表 1. The user information array</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><THEAD
><TR
><TH
>Element</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
>name</TD
><TD
>&#13;        The name element contains the username of the user. This is
        a short, usually less than 16 character "handle" of the
        user, not her real, full name. This should be the same as
        the <CODE
CLASS="parameter"
>username</CODE
> parameter used when
        calling the function, and hence redundant.
       </TD
></TR
><TR
><TD
>passwd</TD
><TD
>&#13;        The passwd element contains the user's password in an
        encrypted format. Often, for example on a system employing
        "shadow" passwords, an asterisk is returned instead.
       </TD
></TR
><TR
><TD
>uid</TD
><TD
>&#13;        User ID of the user in numeric form.
       </TD
></TR
><TR
><TD
>gid</TD
><TD
>&#13;        The group ID of the user. Use the function
        <A
HREF="function.posix-getgrgid.html"
><B
CLASS="function"
>posix_getgrgid()</B
></A
> to resolve the group
        name and a list of its members.
       </TD
></TR
><TR
><TD
>gecos</TD
><TD
>&#13;        GECOS is an obsolete term that refers to the finger
        information field on a Honeywell batch processing system.
        The field, however, lives on, and its contents have been
        formalized by POSIX. The field contains a comma separated
        list containing the user's full name, office phone, office
        number, and home phone number. On most systems, only the
        user's full name is available.
       </TD
></TR
><TR
><TD
>dir</TD
><TD
>&#13;        This element contains the absolute path to the home
        directory of the user.
       </TD
></TR
><TR
><TD
>shell</TD
><TD
>&#13;        The shell element contains the absolute path to the
        executable of the user's default shell.
       </TD
></TR
></TBODY
></TABLE
></DIV
>
  </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.posix-getppid.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.posix-getpwuid.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>posix_getppid</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.posix.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>posix_getpwuid</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>