<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.filesystem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.linkinfo.php',
    1 => 'linkinfo',
    2 => 'Liefert Informationen &uuml;ber einen Link',
  ),
  'up' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'Dateisystem',
  ),
  'prev' => 
  array (
    0 => 'function.link.php',
    1 => 'link',
  ),
  'next' => 
  array (
    0 => 'function.lstat.php',
    1 => 'lstat',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/filesystem/functions/linkinfo.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.linkinfo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">linkinfo</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">linkinfo</span> &mdash; <span class="dc-title">Liefert Informationen über einen Link</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.linkinfo-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>linkinfo</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="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">
   Liefert Informationen über einen Link.
  </p>
  <p class="para">
   Diese Funktion wird benutzt, um zu verifizieren, ob ein Link (auf den
   mit <code class="parameter">path</code> gezeigt wird) wirklich existiert. Dabei
   wird die gleiche Methode benutzt, die in dem S_ISLNK-Makro in 
   <var class="filename">stat.h</var> definiert ist).
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.linkinfo-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">path</code></dt>
     <dd>
      <p class="para">
       Pfad zum Link.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.linkinfo-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   <span class="function"><strong>linkinfo()</strong></span> gibt das <code class="literal">st_dev</code>-Feld der
   Unix-C-Stat-Struktur, die vom <code class="literal">lstat</code>-Systemaufruf
   zurückgegeben wird, zurück.
   Gibt im Erfolgsfall eine nicht-negative Ganzzahl zurück;
   -1 im Fall, dass der Link nicht gefunden wurde,
   oder <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> falls ein open_base_dir Verstoß erfolgt.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.linkinfo-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>linkinfo()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">linkinfo</span><span style="color: #007700">(</span><span style="color: #DD0000">'/vmlinuz'</span><span style="color: #007700">); </span><span style="color: #FF8000">// 835<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.linkinfo-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.symlink.php" class="function" rel="rdfs-seeAlso">symlink()</a> - Erzeugt einen symbolischen Link</span></li>
    <li><span class="function"><a href="function.link.php" class="function" rel="rdfs-seeAlso">link()</a> - Erzeugt einen harten Link</span></li>
    <li><span class="function"><a href="function.readlink.php" class="function" rel="rdfs-seeAlso">readlink()</a> - Liefert das Ziel eines symbolischen Links</span></li>
   </ul>
  </p>
 </div>


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