[PHP-DOC] cvs: phpdoc /it/functions dir.xml From: Luca Perugini (l.perugini <email protected>)
Date: 08/31/00

perugini Thu Aug 31 09:29:56 2000 EDT

  Modified files:
    /phpdoc/it/functions dir.xml
  Log:
  Sync with en tree.
  
  
Index: phpdoc/it/functions/dir.xml
diff -u phpdoc/it/functions/dir.xml:1.2 phpdoc/it/functions/dir.xml:1.3
--- phpdoc/it/functions/dir.xml:1.2 Sat Jun 24 00:38:44 2000
+++ phpdoc/it/functions/dir.xml Thu Aug 31 09:29:56 2000
@@ -82,6 +82,25 @@
    </refsect1>
   </refentry>
 
+ <refentry id="function.getcwd">
+ <refnamediv>
+ <refname>getcwd</refname>
+ <refpurpose>gets the current working directory</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string <function>getcwd</function></funcdef>
+ <void/>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ Returns the current working directory.
+ </para>
+ </refsect1>
+ </refentry>
+
   <refentry id="function.opendir">
    <refnamediv>
     <refname>opendir</refname>
@@ -126,7 +145,7 @@
 $handle=opendir('.');
 echo "Directory handle: $handle\n";
 echo "Files:\n";
-while ($file = readdir($handle)) {
+while (($file = readdir($handle))!==false) {
     echo "$file\n";
 }
 closedir($handle);
@@ -145,8 +164,8 @@
       <programlisting role="php">
 &lt;?php
 $handle=opendir('.');
-while ($file = readdir($handle)) {
- if ($file != "." && $file != "..") {
+while (false!==($file = readdir($handle))) {
+ if ($file != "." &amp;&amp; $file != "..") {
         echo "$file\n";
     }
 }
@@ -192,7 +211,7 @@
 sgml-indent-step:1
 sgml-indent-data:t
 sgml-parent-document:nil
-sgml-default-dtd-file:"../manual.ced"
+sgml-default-dtd-file:"../../manual.ced"
 sgml-exposed-tags:nil
 sgml-local-catalogs:nil
 sgml-local-ecat-files:nil