<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >posix_getpwuid</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="POSIX Functions" HREF="ref.posix.html"><LINK REL="PREVIOUS" TITLE="posix_getpwnam" HREF="function.posix-getpwnam.html"><LINK REL="NEXT" TITLE="posix_getrlimit" HREF="function.posix-getrlimit.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" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.posix-getpwnam.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.posix-getrlimit.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.posix-getpwuid" ></A >posix_getpwuid</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN178943" ></A ><P > (PHP 3 >= 3.0.13, PHP 4, PHP 5)</P >posix_getpwuid -- Return info about a user by user id</DIV ><DIV CLASS="refsect1" ><A NAME="AEN178946" ></A ><H2 >Descrição</H2 >array <B CLASS="methodname" >posix_getpwuid</B > ( int uid )<BR ></BR ><P > Gets information about the user referenced by the given user ID. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN178955" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >uid</CODE ></DT ><DD ><P > The user identifier. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN178964" ></A ><H2 >Valores de retornado</H2 ><P > Returns an associative array with the following elements: <DIV CLASS="table" ><A NAME="AEN178967" ></A ><P ><B >Tabela 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 > 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. </TD ></TR ><TR ><TD >passwd</TD ><TD > 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 > User ID, should be the same as the <CODE CLASS="parameter" >uid</CODE > parameter used when calling the function, and hence redundant. </TD ></TR ><TR ><TD >gid</TD ><TD > 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 > 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 > This element contains the absolute path to the home directory of the user. </TD ></TR ><TR ><TD >shell</TD ><TD > 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-getpwnam.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.posix-getrlimit.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >posix_getpwnam</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.posix.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >posix_getrlimit</TD ></TR ></TABLE ></DIV ></BODY ></HTML >