<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.posix.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.posix-getpwuid.php',
    1 => 'posix_getpwuid',
    2 => 'Restituisce le informazioni di un utente dato il suo ID',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.posix-getpwnam.php',
    1 => 'posix_getpwnam',
  ),
  'next' => 
  array (
    0 => 'function.posix-getrlimit.php',
    1 => 'posix_getrlimit',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/posix/functions/posix-getpwuid.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-getpwuid" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">posix_getpwuid</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_getpwuid</span> &mdash; <span class="dc-title">Restituisce le informazioni di un utente dato il suo ID</span></p>

   </div>
   <div class="refsect1 unknown-922" id="refsect1-function.posix-getpwuid-unknown-922">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>posix_getpwuid</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$uid</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

    <p class="para rdfs-comment">
     La funzione restituisce un array associativo contenente le informazioni
     sull&#039;utente il cui ID è stato fornito nel parametro
     <code class="parameter">uid</code>.
    </p>
    <p class="para">
     Gli elementi dell&#039;array sono:
     <table class="doctable table">
      <caption><strong>Array delle informazioni utente</strong></caption>
      
       <thead>
        <tr>
         <th>Elemento</th>
         <th>Descrizione</th>
        </tr>

       </thead>

       <tbody class="tbody">
        <tr>
         <td>name</td>
         <td>
          L&#039;elemento name solitamente contiene il nome dell&#039;utente. Questo
          è un nome corto, di solito meno di 16 caratteri, non
          il nome reale, completo, dell&#039;utente. Questo dovrebbe essere uguale
          al parametro <code class="parameter">username</code> passato alla funzione
          e quindi ridondante.
         </td>
        </tr>

        <tr>
         <td>passwd</td>
         <td>
          L&#039;elemento passwd contiene la password dell&#039;utente
          in formato criptato. Spesso, ad esempio nei sistemi utilizzano
          password &quot;shadow&quot;, vengono restituiti degli asterischi.
         </td>
        </tr>

        <tr>
         <td>uid</td>
         <td>
          ID dell&#039;utente in formato numerico.
         </td>
        </tr>

        <tr>
         <td>gid</td>
         <td>
          ID del gruppo a cui appartiene l&#039;utente. Utilizzare la funzione
          <span class="function"><a href="function.posix-getgrgid.php" class="function">posix_getgrgid()</a></span> per ottenere il nome del gruppo
          e l&#039;elenco dei suoi membri.
         </td>
        </tr>

        <tr>
         <td>gecos</td>
         <td>
          GECOS è un termine obsoleto che si riferisce a campi del
          comando finger su sistemi Honeywell.
          Tuttavia il campo è sopravvissuto ed il suo contenuto è stato 
          formalizzato in POSIX. Il campo contiene le informazioni separate da
          virgola relative a nome completo dell&#039;utente, numero telefonico dell&#039;ufficio,
          numero dell&#039;ufficio, numero telefonico di casa. In molti sistemi
          è disponibile solo il nome completo dell&#039;utente.
         </td>
        </tr>

        <tr>
         <td>dir</td>
         <td>
          Questo elemento contiene il percorso assoluto alla
          home directory dell&#039;utente.
         </td>
        </tr>

        <tr>
         <td>shell</td>
         <td>
          L&#039;elemento shell contiene il percorso assoluto
          alla shell di default per l&#039;utente.
         </td>
        </tr>

       </tbody>
      
     </table>

    </p>    
   </div>

  </div><?php manual_footer($setup); ?>