mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-10-20 10:15:03 +02:00
197 lines
9.2 KiB
HTML
197 lines
9.2 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>lstat</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||
|
<meta name="description" content="Es werden Informationen über eine Datei oder einen symbolischen Link geliefert">
|
||
|
<meta name="keywords" content="SELFPHP, PHP, Dateisystem-Funktionen, lstat">
|
||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||
|
<meta name="DC.Date" content="2001-08-13T12:18+01:00">
|
||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/dateisystem_funktionen/lstat.html">
|
||
|
<meta name="DC.Language" content="de">
|
||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||
|
<meta name="SELF.Firstdate" content="2001-08-13T12:18+01:00">
|
||
|
<meta name="SELF.Version" content="1">
|
||
|
<meta name="SELF.Pagetype" content="Information">
|
||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Dateisystem-Funktionen == index.html">
|
||
|
</head>
|
||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||
|
|
||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr>
|
||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Dateisystem-Funktionen</b></a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||
|
<h2>lstat</h2></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||
|
</td>
|
||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||
|
</p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||
|
|
||
|
|
||
|
|
||
|
<table width="100%" cellpadding=10>
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||
|
<p>array <b>lstat</b>(string filename)</p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="32">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||
|
<p> PHP 3>= 3.0.4, PHP 4 >= 4.0b1</p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="196">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||
|
<p>Mit lstat() kann man sich verschiedene Informationen über eine Datei
|
||
|
(filename)<br>
|
||
|
oder eine symbolischen Link zurückgeben lassen. Im Erfolgsfall gibt
|
||
|
diese<br>
|
||
|
Funktion die Informationen über die Datei oder den symbolischen Link
|
||
|
in Form<br>
|
||
|
eines Arrays zurück, sonst ist das Ergebnis false. <br>
|
||
|
Beachten Sie bitte, dass das Ergebnis zwischengespeichert (siehe clearstatcache)<br>
|
||
|
wird.</p>
|
||
|
<p>Folgende Statistiken werden ausgegeben:</p>
|
||
|
<ul>
|
||
|
<li>Gerät</li>
|
||
|
<li>Inode</li>
|
||
|
<li>Mode</li>
|
||
|
<li>Anzahl Links</li>
|
||
|
<li>User-Id des Besitzers</li>
|
||
|
<li>Gruppen-Id Besitzers</li>
|
||
|
<li>Gerätetyp, falls Inode-Gerät.*</li>
|
||
|
<li>Größe in Bytes</li>
|
||
|
<li>Zeit des letzten Zugriffs</li>
|
||
|
<li>Zeit der letzten Modifikation</li>
|
||
|
<li>Zeit der letzten Änderung</li>
|
||
|
<li>Blockgröße für Dateisystem I/O *</li>
|
||
|
<li>Anzahl der Blöcke</li>
|
||
|
</ul>
|
||
|
<p>*Gibt -1 aus, falls das System (z.B. Windows) nicht den st_blksize<br>
|
||
|
Typ unterstützt.</p>
|
||
|
<p></p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="62">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||
|
<pre><?PHP<br>symlink("members.txt","sym_link.txt");<br>$statistik = lstat("sym_link.txt");<br>while(list($key, $val) = each($statistik)) {<br> echo $key . ": " . $val;<br> echo "<br>";<br>}<br>?></pre>
|
||
|
<p></p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="36">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||
|
<p>0: 771<br>
|
||
|
1: 491065<br>
|
||
|
2: 33279<br>
|
||
|
3: 3<br>
|
||
|
4: 0<br>
|
||
|
5: 100<br>
|
||
|
6: 0<br>
|
||
|
7: 28<br>
|
||
|
8: 997556079<br>
|
||
|
9: 997546715<br>
|
||
|
10: 997550109<br>
|
||
|
11: 4096<br>
|
||
|
12: 8</p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
|
||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||
|
</td></tr>
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="move_uploaded_file.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||
|
<a href="move_uploaded_file.html"><b>move_uploaded_file</b></a> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="linkinfo.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||
|
<a href="linkinfo.html"><b>linkinfo</b></a> </td>
|
||
|
</tr>
|
||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr>
|
||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||
|
<a href="index.html"><b>Dateisystem-Funktionen</b></a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|