[PHP-DOC] cvs: phpdoc /de/functions filesystem.xml From: Wolfgang Drews (drews <email protected>)
Date: 07/12/00

drews Wed Jul 12 04:59:24 2000 EDT

  Modified files:
    /phpdoc/de/functions filesystem.xml
  Log:
  Added:
  function.realpath
  
  Changed:
  some minor cosmetic ones
  (updated from english manual)
  
  translation required
  --> german tree version is up2date now
  
  
Index: phpdoc/de/functions/filesystem.xml
diff -u phpdoc/de/functions/filesystem.xml:1.16 phpdoc/de/functions/filesystem.xml:1.17
--- phpdoc/de/functions/filesystem.xml:1.16 Sat Jun 24 00:38:42 2000
+++ phpdoc/de/functions/filesystem.xml Wed Jul 12 04:59:24 2000
@@ -494,11 +494,11 @@
                                            // in einen Array $data gelesen
     $num = count ($data); // Felder im Array $data
                                            // werden gezählt
- print "&lt;p> $num fields in line $row: &lt;br>";
+ print "&lt;p&gt; $num fields in line $row: &lt;br&gt;";
     $row++; // Anzahl der Arrays wird
                                            // inkrementiert
- for ($c=0; $c<$num; $c++) { // FOR-Schleife, um Felder
- print $data[$c] . "&lt;br>"; // des Arrays auszugeben
+ for ($c=0; $c&lt;$num; $c++) { // FOR-Schleife, um Felder
+ print $data[$c] . "&lt;br&gt;"; // des Arrays auszugeben
     }
 }
 fclose ($fp);
@@ -2175,7 +2175,39 @@
     </para>
    </refsect1>
   </refentry>
+
+ <refentry id="function.realpath">
+ <refnamediv>
+ <refname>realpath</refname>
+ <refpurpose>Return canonicalized absolute pathname</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string <function>realpath</function></funcdef>
+ <paramdef>string <parameter>path</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>realpath</function> expands all symbolic links and
+ resolves references to '/./', '/../' and extra '/' characters in
+ the input <parameter>path</parameter> and return the canonicalized
+ absolute pathname. The resulting path will have no symbolic link,
+ '/./' or '/../' components.
+ </para>
 
+ <para>
+ <example>
+ <title><function>realpath</function> example</title>
+ <programlisting role="php">
+$real_path = realpath("../../index.php");
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ </refentry>
+
   <refentry id="function.symlink">
    <refnamediv>
     <refname>symlink</refname>
@@ -2316,7 +2348,7 @@
     </funcsynopsis>
     <para>
      <function>Umask</function> setzt PHP's umask auf
- <parameter>mask</parameter> & 0777 und gibt die alte umask
+ <parameter>mask</parameter> &amp; 0777 und gibt die alte umask
      zurück. Wenn PHP als Servermodul benutzt wird, wird die umask
      zurückgespeichert wenn die jeweilige Anfrage beendet ist.
     </para>