Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 2784

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>posix_getpwnam</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual 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=ISO-8859-2"></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"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.posix-getppid.html"
ACCESSKEY="P"
>Înapoi</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"
>Înainte</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="AEN93333"
></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="AEN93336"
></A
><H2
>Description</H2
>array <B
CLASS="methodname"
>posix_getpwnam</B
> ( string username)<BR
></BR
><P
>&#13;     Returns an associative array containing information about a user
     referenced by an alphanumeric username, passed in the
     <VAR
CLASS="parameter"
>username</VAR
> parameter.
    </P
><P
>&#13;     The array elements returned are:
     <DIV
CLASS="table"
><A
NAME="AEN93347"
></A
><P
><B
>Tabel 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 <VAR
CLASS="parameter"
>username</VAR
> 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"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.posix-getpwuid.html"
ACCESSKEY="N"
>Înainte</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"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>posix_getpwuid</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>