<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.streamwrapper.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.url-stat.php',
    1 => 'streamWrapper::url_stat',
    2 => 'Retrieve information about a file',
  ),
  'up' => 
  array (
    0 => 'class.streamwrapper.php',
    1 => 'streamWrapper',
  ),
  'prev' => 
  array (
    0 => 'streamwrapper.unlink.php',
    1 => 'streamWrapper::unlink',
  ),
  'next' => 
  array (
    0 => 'ref.stream.php',
    1 => 'Stream-Funktionen',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stream/streamwrapper/url-stat.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="streamwrapper.url-stat" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">streamWrapper::url_stat</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.2, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">streamWrapper::url_stat</span> &mdash; <span class="dc-title">Retrieve information about a file</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.url-stat-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>streamWrapper::url_stat</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   This method is called in response to all <span class="function"><a href="function.stat.php" class="function">stat()</a></span> related
   functions, such as:
   <ul class="simplelist">
    <li><span class="function"><a href="function.copy.php" class="function">copy()</a></span></li>
    <li><span class="function"><a href="function.fileperms.php" class="function">fileperms()</a></span></li>
    <li><span class="function"><a href="function.fileinode.php" class="function">fileinode()</a></span></li>
    <li><span class="function"><a href="function.filesize.php" class="function">filesize()</a></span></li>
    <li><span class="function"><a href="function.fileowner.php" class="function">fileowner()</a></span></li>
    <li><span class="function"><a href="function.filegroup.php" class="function">filegroup()</a></span></li>
    <li><span class="function"><a href="function.fileatime.php" class="function">fileatime()</a></span></li>
    <li><span class="function"><a href="function.filemtime.php" class="function">filemtime()</a></span></li>
    <li><span class="function"><a href="function.filectime.php" class="function">filectime()</a></span></li>
    <li><span class="function"><a href="function.filetype.php" class="function">filetype()</a></span></li>
    <li><span class="function"><a href="function.is-writable.php" class="function">is_writable()</a></span></li>
    <li><span class="function"><a href="function.is-readable.php" class="function">is_readable()</a></span></li>
    <li><span class="function"><a href="function.is-executable.php" class="function">is_executable()</a></span></li>
    <li><span class="function"><a href="function.is-file.php" class="function">is_file()</a></span></li>
    <li><span class="function"><a href="function.is-dir.php" class="function">is_dir()</a></span></li>
    <li><span class="function"><a href="function.is-link.php" class="function">is_link()</a></span></li>
    <li><span class="function"><a href="function.file-exists.php" class="function">file_exists()</a></span></li>
    <li><span class="function"><a href="function.lstat.php" class="function">lstat()</a></span></li>
    <li><span class="function"><a href="function.stat.php" class="function">stat()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getperms.php" class="methodname">SplFileInfo::getPerms()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getinode.php" class="methodname">SplFileInfo::getInode()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getsize.php" class="methodname">SplFileInfo::getSize()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getowner.php" class="methodname">SplFileInfo::getOwner()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getgroup.php" class="methodname">SplFileInfo::getGroup()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getatime.php" class="methodname">SplFileInfo::getATime()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getmtime.php" class="methodname">SplFileInfo::getMTime()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.getctime.php" class="methodname">SplFileInfo::getCTime()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.gettype.php" class="methodname">SplFileInfo::getType()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.iswritable.php" class="methodname">SplFileInfo::isWritable()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.isreadable.php" class="methodname">SplFileInfo::isReadable()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.isexecutable.php" class="methodname">SplFileInfo::isExecutable()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.isfile.php" class="methodname">SplFileInfo::isFile()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.isdir.php" class="methodname">SplFileInfo::isDir()</a></span></li>
    <li><span class="methodname"><a href="splfileinfo.islink.php" class="methodname">SplFileInfo::isLink()</a></span></li>
    <li><span class="methodname"><a href="recursivedirectoryiterator.haschildren.php" class="methodname">RecursiveDirectoryIterator::hasChildren()</a></span></li>
   </ul>
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.url-stat-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">path</code></dt>
     <dd>
      <p class="para">
       The file path or URL to stat.  Note that in the case of a URL, it must be a :// delimited
       URL.  Other URL forms are not supported.
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       Holds additional flags set by the streams API. It can hold one or more
       of the following values OR&#039;d together.
       <table class="doctable informaltable">
        
         <thead>
          <tr>
           <th>Flag</th>
           <th>Description</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td>STREAM_URL_STAT_LINK</td>
           <td>
            For resources with the ability to link to other resource
            (such as an HTTP Location: forward, or a filesystem
            symlink).  This flag specified that only information
            about the link itself should be returned, not the
            resource pointed to by the link.  This flag is set in
            response to calls to <span class="function"><a href="function.lstat.php" class="function">lstat()</a></span>,
            <span class="function"><a href="function.is-link.php" class="function">is_link()</a></span>, or <span class="function"><a href="function.filetype.php" class="function">filetype()</a></span>.
           </td>
          </tr>

          <tr>
           <td>STREAM_URL_STAT_QUIET</td>
           <td>If this flag is set, your wrapper should not raise any
            errors.  If this flag is not set, you are responsible for
            reporting errors using the <span class="function"><a href="function.trigger-error.php" class="function">trigger_error()</a></span>
            function during stating of the path.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.url-stat-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Should return an <a href="language.types.array.php" class="link">Array</a> with the same elements as <span class="function"><a href="function.stat.php" class="function">stat()</a></span> does.
   Unknown or unavailable values should be set to a rational value
   (usually <code class="literal">0</code>). Special attention should be payed to
   <code class="literal">mode</code> as documented under <span class="function"><a href="function.stat.php" class="function">stat()</a></span>.
   Should return <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-streamwrapper.url-stat-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="para">Wirft
<strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>, wenn der Aufruf dieser Methode
fehlschlug (z. B. weil sie nicht implementiert ist).</p>
 </div>

 
 

 <div class="refsect1 notes" id="refsect1-streamwrapper.url-stat-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: <p class="para">Die
<var class="varname">streamWrapper::$context</var>-Eigenschaft
wird, wenn verfügbar, aktualisiert, wenn der aufrufenden Funktion
ein gültiger Kontext übergeben wurde.</p></p></blockquote>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-streamwrapper.url-stat-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.stat.php" class="function" rel="rdfs-seeAlso">stat()</a> - Sammelt Informationen &uuml;ber eine Datei</span></li>
    <li><span class="methodname"><a href="streamwrapper.stream-stat.php" class="methodname" rel="rdfs-seeAlso">streamwrapper::stream_stat()</a> - Retrieve information about a file resource</span></li>
   </ul>
  </p>
 </div>


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