<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.splfileinfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'splfileinfo.getowner.php',
    1 => 'SplFileInfo::getOwner',
    2 => 'Gets the owner of the file',
  ),
  'up' => 
  array (
    0 => 'class.splfileinfo.php',
    1 => 'SplFileInfo',
  ),
  'prev' => 
  array (
    0 => 'splfileinfo.getmtime.php',
    1 => 'SplFileInfo::getMTime',
  ),
  'next' => 
  array (
    0 => 'splfileinfo.getpath.php',
    1 => 'SplFileInfo::getPath',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/spl/splfileinfo/getowner.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="splfileinfo.getowner" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplFileInfo::getOwner</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SplFileInfo::getOwner</span> &mdash; <span class="dc-title">Gets the owner of the file</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-splfileinfo.getowner-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SplFileInfo::getOwner</strong></span>(): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Gets the file owner. The owner ID is returned in numerical format.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-splfileinfo.getowner-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">Questa funzione non contiene parametri.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-splfileinfo.getowner-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   The owner id in numerical format on success, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-splfileinfo.getowner-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <p class="para">
   Throws <span class="classname"><a href="class.runtimeexception.php" class="classname">RuntimeException</a></span> on error.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-splfileinfo.getowner-examples">
  <h3 class="title">Esempi</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 <span class="methodname"><strong>SplFileInfo::getOwner()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$info </span><span style="color: #007700">= new </span><span style="color: #0000BB">SplFileInfo</span><span style="color: #007700">(</span><span style="color: #DD0000">'example.jpg'</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">info</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getFilename</span><span style="color: #007700">() . </span><span style="color: #DD0000">' belongs to owner id ' </span><span style="color: #007700">. </span><span style="color: #0000BB">$info</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getOwner</span><span style="color: #007700">() . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">posix_getpwuid</span><span style="color: #007700">(</span><span style="color: #0000BB">$info</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getOwner</span><span style="color: #007700">()));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Il precedente esempio visualizzerà
qualcosa simile a:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">example.jpg belongs to user id 501
Array
(
    [name] =&gt; tom
    [passwd] =&gt; x
    [uid] =&gt; 501
    [gid] =&gt; 42
    [gecos] =&gt; Tom Cat
    [dir] =&gt; /home/tom
    [shell] =&gt; /bin/bash
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-splfileinfo.getowner-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.posix-getpwuid.php" class="function" rel="rdfs-seeAlso">posix_getpwuid()</a> - Restituisce le informazioni di un utente dato il suo ID</span></li>
    <li><span class="methodname"><a href="splfileinfo.getgroup.php" class="methodname" rel="rdfs-seeAlso">SplFileInfo::getGroup()</a> - Gets the file group</span></li>
   </ul>
  </p>
 </div>


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