cvs: phpdoc-fr /reference/dir/functions class.dir.xml opendir.xml
| From: | Damien Seguy | Date: | Thu, 23 Dec 2004 16:39:42 +0000 |
| Subject: | cvs: phpdoc-fr /reference/dir/functions class.dir.xml opendir.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-3765@lists.php.net to get a copy of this message | ||
dams Thu Dec 23 11:39:43 2004 EDT
Modified files:
/phpdoc-fr/reference/dir/functions class.dir.xml opendir.xml
Log:
synch with en
http://cvs.php.net/diff.php/phpdoc-fr/reference/dir/functions/class.dir.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-fr/reference/dir/functions/class.dir.xml
diff -u phpdoc-fr/reference/dir/functions/class.dir.xml:1.3
phpdoc-fr/reference/dir/functions/class.dir.xml:1.4
--- phpdoc-fr/reference/dir/functions/class.dir.xml:1.3 Mon Nov 1 15:55:27 2004
+++ phpdoc-fr/reference/dir/functions/class.dir.xml Thu Dec 23 11:39:42 2004
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.7 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.8 Maintainer: dams Status: ready -->
<refentry id="class.dir">
<refnamediv>
<refname>dir</refname>
- <refpurpose>Classe dossier</refpurpose>
+ <refpurpose>Classe de dossier DIR</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
@@ -47,16 +47,28 @@
<programlisting role="php">
<![CDATA[
<?php
-$d = dir("/etc");
-echo "Pointeur: " . $d->handle . "<br />\n";
-echo "Chemin: " . $d->path . "<br />\n";
+$d = dir("/etc/php5");
+echo "Pointeur : " . $d->handle . "\n";
+echo "Chemin : " . $d->path . "\n";
while (false !== ($entry = $d->read())) {
- echo $entry . "<br />\n";
+ echo $entry . "\n";
}
$d->close();
?>
]]>
</programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Pointeur : Resource id #2
+Chemin : /etc/php5
+.
+..
+apache
+cgi
+cli
+]]>
+ </screen>
</example>
</para>
<note>
@@ -69,8 +81,8 @@
<para>
Ceci défini la classe interne
<classname>Directory</classname>, ce qui signifie que vous ne pourrez pas
- nommer votre classe avec ce nom. Pour une liste complète des classes prédéfinies
- en &php;, lisez <link
+ nommer une nouvelle classe avec ce nom. Pour une liste complète des
+ classes prédéfinies en &php;, lisez <link
linkend="reserved.classes">classes prédéfinies</link>.
</para>
</note>
http://cvs.php.net/diff.php/phpdoc-fr/reference/dir/functions/opendir.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc-fr/reference/dir/functions/opendir.xml
diff -u phpdoc-fr/reference/dir/functions/opendir.xml:1.9
phpdoc-fr/reference/dir/functions/opendir.xml:1.10
--- phpdoc-fr/reference/dir/functions/opendir.xml:1.9 Mon Nov 1 15:55:27 2004
+++ phpdoc-fr/reference/dir/functions/opendir.xml Thu Dec 23 11:39:42 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
-<!-- EN-Revision: 1.11 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.10 $ -->
+<!-- EN-Revision: 1.12 Maintainer: dams Status: ready -->
<refentry id="function.opendir">
<refnamediv>
<refname>opendir</refname>
@@ -37,13 +37,13 @@
<programlisting role="php">
<![CDATA[
<?php
-$dir = "/tmp/";
+$dir = "/tmp/php5";
// Ouvre un dossier bien connu, et liste tous les fichiers
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
- echo "fichier : $file : type: " . filetype($dir . $file) . "\n";
+ echo "fichier : $file : type : " . filetype($dir . $file) . "\n";
}
closedir($dh);
}
@@ -51,6 +51,16 @@
?>
]]>
</programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+fichier : . : type : dir
+fichier : .. : type : dir
+fichier : apache : type : dir
+fichier : cgi : type : dir
+fichier : cli : type : dir
+]]>
+ </screen>
</example>
</para>
<para>