yannick Mon Dec 20 15:26:07 2004 EDT
Modified files:
/phpdoc/en/reference/dir/functions class.dir.xml opendir.xml
Log:
add output for examples
http://cvs.php.net/diff.php/phpdoc/en/reference/dir/functions/class.dir.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/dir/functions/class.dir.xml
diff -u phpdoc/en/reference/dir/functions/class.dir.xml:1.7
phpdoc/en/reference/dir/functions/class.dir.xml:1.8
--- phpdoc/en/reference/dir/functions/class.dir.xml:1.7 Mon Nov 1 11:08:20 2004
+++ phpdoc/en/reference/dir/functions/class.dir.xml Mon Dec 20 15:26:05 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 -->
<refentry id="class.dir">
<refnamediv>
@@ -47,16 +47,28 @@
<programlisting role="php">
<![CDATA[
<?php
-$d = dir("/etc");
-echo "Handle: " . $d->handle . "<br />\n";
-echo "Path: " . $d->path . "<br />\n";
+$d = dir("/etc/php5");
+echo "Handle: " . $d->handle . "\n";
+echo "Path: " . $d->path . "\n";
while (false !== ($entry = $d->read())) {
- echo $entry."<br />\n";
+ echo $entry."\n";
}
$d->close();
?>
]]>
</programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Handle: Resource id #2
+Path: /etc/php5
+.
+..
+apache
+cgi
+cli
+]]>
+ </screen>
</example>
</para>
<note>
http://cvs.php.net/diff.php/phpdoc/en/reference/dir/functions/opendir.xml?r1=1.11&r2=1.12&ty=u
Index: phpdoc/en/reference/dir/functions/opendir.xml
diff -u phpdoc/en/reference/dir/functions/opendir.xml:1.11
phpdoc/en/reference/dir/functions/opendir.xml:1.12
--- phpdoc/en/reference/dir/functions/opendir.xml:1.11 Mon Nov 1 11:08:20 2004
+++ phpdoc/en/reference/dir/functions/opendir.xml Mon Dec 20 15:26:05 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 -->
<refentry id="function.opendir">
<refnamediv>
@@ -33,7 +33,7 @@
<programlisting role="php">
<![CDATA[
<?php
-$dir = "/tmp/";
+$dir = "/etc/php5/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
@@ -47,6 +47,16 @@
?>
]]>
</programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+filename: . : filetype: dir
+filename: .. : filetype: dir
+filename: apache : filetype: dir
+filename: cgi : filetype: dir
+filename: cli : filetype: dir
+]]>
+ </screen>
</example>
</para>
<para>