cvs: phpdoc /en/reference/filesystem/functions chgrp.xml clearstatcache.xml fgetss.xml fileinode.xml ftruncate.xml link.xml pclose.xml readfile.xml
rewind.xml rmdir.xml
| From: | Ross Masters | Date: | Tue, 14 Oct 2008 15:10:17 +0000 |
| Subject: | cvs: phpdoc /en/reference/filesystem/functions chgrp.xml clearstatcache.xml fgetss.xml fileinode.xml ftruncate.xml link.xml pclose.xml readfile.xml rewind.xml rmdir.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2234@lists.php.net to get a copy of this message | ||
ross Tue Oct 14 15:10:17 2008 UTC
Modified files:
/phpdoc/en/reference/filesystem/functions chgrp.xml
clearstatcache.xml
fgetss.xml fileinode.xml
ftruncate.xml link.xml
pclose.xml readfile.xml
rewind.xml rmdir.xml
Log:
Fixing example code to comply with PEAR coding standards.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/chgrp.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/filesystem/functions/chgrp.xml diff -u phpdoc/en/reference/filesystem/functions/chgrp.xml:1.10 phpdoc/en/reference/filesystem/functions/chgrp.xml:1.11 --- phpdoc/en/reference/filesystem/functions/chgrp.xml:1.10 Mon Oct 13 19:26:49 2008 +++ phpdoc/en/reference/filesystem/functions/chgrp.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.chgrp"> <refnamediv> <refname>chgrp</refname> @@ -63,9 +63,10 @@ <![CDATA[ <?php $filename = 'shared_file.txt'; -echo("$filename's Group ID @ " . time() . ": " . filegroup($filename) . "\n"); +$format = "%s's Group ID @ %s: %d\n"; +printf($format, $filename, date('r'), filegroup($filename)); chgrp($filename, 8); -echo("$filename's Group ID @ " . time() . ": " . filegroup($filename) . "\n"); +printf($format, $filename, date('r'), filegroup($filename)); ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/clearstatcache.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/filesystem/functions/clearstatcache.xml diff -u phpdoc/en/reference/filesystem/functions/clearstatcache.xml:1.14 phpdoc/en/reference/filesystem/functions/clearstatcache.xml:1.15 --- phpdoc/en/reference/filesystem/functions/clearstatcache.xml:1.14 Mon Oct 13 19:26:49 2008 +++ phpdoc/en/reference/filesystem/functions/clearstatcache.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.clearstatcache"> <refnamediv> <refname>clearstatcache</refname> @@ -85,13 +85,15 @@ return $user['name']; } -echo('UID @ ' . date('r') . ': ' . get_owner($file) . PHP_EOL); +$format = "UID @ %s: %s\n"; + +printf($format, date('r'), get_owner($file)); chown($path, 'ross'); -echo('UID @ ' . date('r') . ': ' . get_owner($file) . PHP_EOL); +printf($format, date('r'), get_owner($file)); clearstatcache(); -echo('UID @ ' . date('r') . ': ' . get_owner($file) . PHP_EOL); +printf($format, date('r'), get_owner($file)); ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/fgetss.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/filesystem/functions/fgetss.xml diff -u phpdoc/en/reference/filesystem/functions/fgetss.xml:1.10 phpdoc/en/reference/filesystem/functions/fgetss.xml:1.11 --- phpdoc/en/reference/filesystem/functions/fgetss.xml:1.10 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/fgetss.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fgetss"> <refnamediv> <refname>fgetss</refname> @@ -110,9 +110,8 @@ file_put_contents('sample.php', $str); $handle = @fopen("sample.php", "r"); -if($handle) { - while(!feof($handle)) - { +if ($handle) { + while (!feof($handle)) { $buffer = fgetss($handle, 4096); echo $buffer; } http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/fileinode.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/filesystem/functions/fileinode.xml diff -u phpdoc/en/reference/filesystem/functions/fileinode.xml:1.9 phpdoc/en/reference/filesystem/functions/fileinode.xml:1.10 --- phpdoc/en/reference/filesystem/functions/fileinode.xml:1.9 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/fileinode.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fileinode"> <refnamediv> <refname>fileinode</refname> @@ -49,9 +49,8 @@ <![CDATA[ <?php $filename = 'index.php'; -if(getmyinode() == fileinode($filename)) -{ - echo('You are checking the current file.'); +if (getmyinode() == fileinode($filename)) { + echo 'You are checking the current file.'; } ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/ftruncate.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/filesystem/functions/ftruncate.xml diff -u phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.14 phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.15 --- phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.14 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/ftruncate.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.14 --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ftruncate"> <refnamediv> @@ -105,7 +105,7 @@ $handle = fopen($filename, 'r+'); ftruncate($handle, rand(1, filesize($filename))); rewind($handle); -echo(fread($handle, filesize($filename))); +echo fread($handle, filesize($filename)); fclose($handle); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/link.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/filesystem/functions/link.xml diff -u phpdoc/en/reference/filesystem/functions/link.xml:1.11 phpdoc/en/reference/filesystem/functions/link.xml:1.12 --- phpdoc/en/reference/filesystem/functions/link.xml:1.11 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/link.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.link"> <refnamediv> <refname>link</refname> @@ -58,8 +58,8 @@ <![CDATA[ <?php -$source = "source.ext"; // This is the file that already exists -$dest = "newfile.ext"; // This the filename that you want to link it to +$source = 'source.ext'; // This is the file that already exists +$dest = 'newfile.ext'; // This the filename that you want to link it to link($source, $dest); ?> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/pclose.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/filesystem/functions/pclose.xml diff -u phpdoc/en/reference/filesystem/functions/pclose.xml:1.8 phpdoc/en/reference/filesystem/functions/pclose.xml:1.9 --- phpdoc/en/reference/filesystem/functions/pclose.xml:1.8 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/pclose.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.pclose"> <refnamediv> <refname>pclose</refname> @@ -49,7 +49,7 @@ <programlisting role="php"> <![CDATA[ <?php -$handle = popen("/bin/ls", "r"); +$handle = popen('/bin/ls', 'r'); pclose($handle); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/readfile.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/filesystem/functions/readfile.xml diff -u phpdoc/en/reference/filesystem/functions/readfile.xml:1.11 phpdoc/en/reference/filesystem/functions/readfile.xml:1.12 --- phpdoc/en/reference/filesystem/functions/readfile.xml:1.11 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/readfile.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.readfile"> <refnamediv> <refname>readfile</refname> @@ -72,7 +72,7 @@ <?php $file = 'monkey.gif'; -if(file_exists($file)) { +if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/rewind.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc/en/reference/filesystem/functions/rewind.xml diff -u phpdoc/en/reference/filesystem/functions/rewind.xml:1.12 phpdoc/en/reference/filesystem/functions/rewind.xml:1.13 --- phpdoc/en/reference/filesystem/functions/rewind.xml:1.12 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/rewind.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.rewind"> <refnamediv> <refname>rewind</refname> @@ -64,7 +64,7 @@ fwrite($handle, 'Foo'); rewind($handle); -echo(fread($handle, filesize('output.txt'))); +echo fread($handle, filesize('output.txt')); fclose($handle); ?> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/rmdir.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/filesystem/functions/rmdir.xml diff -u phpdoc/en/reference/filesystem/functions/rmdir.xml:1.13 phpdoc/en/reference/filesystem/functions/rmdir.xml:1.14 --- phpdoc/en/reference/filesystem/functions/rmdir.xml:1.13 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/rmdir.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.rmdir"> <refnamediv> <refname>rmdir</refname> @@ -83,8 +83,7 @@ <programlisting role="php"> <![CDATA[ <?php -if(!is_dir('examples')) -{ +if (!is_dir('examples')) { mkdir('examples'); }
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/chgrp.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/filesystem/functions/chgrp.xml diff -u phpdoc/en/reference/filesystem/functions/chgrp.xml:1.10 phpdoc/en/reference/filesystem/functions/chgrp.xml:1.11 --- phpdoc/en/reference/filesystem/functions/chgrp.xml:1.10 Mon Oct 13 19:26:49 2008 +++ phpdoc/en/reference/filesystem/functions/chgrp.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.chgrp"> <refnamediv> <refname>chgrp</refname> @@ -63,9 +63,10 @@ <![CDATA[ <?php $filename = 'shared_file.txt'; -echo("$filename's Group ID @ " . time() . ": " . filegroup($filename) . "\n"); +$format = "%s's Group ID @ %s: %d\n"; +printf($format, $filename, date('r'), filegroup($filename)); chgrp($filename, 8); -echo("$filename's Group ID @ " . time() . ": " . filegroup($filename) . "\n"); +printf($format, $filename, date('r'), filegroup($filename)); ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/clearstatcache.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/filesystem/functions/clearstatcache.xml diff -u phpdoc/en/reference/filesystem/functions/clearstatcache.xml:1.14 phpdoc/en/reference/filesystem/functions/clearstatcache.xml:1.15 --- phpdoc/en/reference/filesystem/functions/clearstatcache.xml:1.14 Mon Oct 13 19:26:49 2008 +++ phpdoc/en/reference/filesystem/functions/clearstatcache.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.clearstatcache"> <refnamediv> <refname>clearstatcache</refname> @@ -85,13 +85,15 @@ return $user['name']; } -echo('UID @ ' . date('r') . ': ' . get_owner($file) . PHP_EOL); +$format = "UID @ %s: %s\n"; + +printf($format, date('r'), get_owner($file)); chown($path, 'ross'); -echo('UID @ ' . date('r') . ': ' . get_owner($file) . PHP_EOL); +printf($format, date('r'), get_owner($file)); clearstatcache(); -echo('UID @ ' . date('r') . ': ' . get_owner($file) . PHP_EOL); +printf($format, date('r'), get_owner($file)); ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/fgetss.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/filesystem/functions/fgetss.xml diff -u phpdoc/en/reference/filesystem/functions/fgetss.xml:1.10 phpdoc/en/reference/filesystem/functions/fgetss.xml:1.11 --- phpdoc/en/reference/filesystem/functions/fgetss.xml:1.10 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/fgetss.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fgetss"> <refnamediv> <refname>fgetss</refname> @@ -110,9 +110,8 @@ file_put_contents('sample.php', $str); $handle = @fopen("sample.php", "r"); -if($handle) { - while(!feof($handle)) - { +if ($handle) { + while (!feof($handle)) { $buffer = fgetss($handle, 4096); echo $buffer; } http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/fileinode.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/filesystem/functions/fileinode.xml diff -u phpdoc/en/reference/filesystem/functions/fileinode.xml:1.9 phpdoc/en/reference/filesystem/functions/fileinode.xml:1.10 --- phpdoc/en/reference/filesystem/functions/fileinode.xml:1.9 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/fileinode.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fileinode"> <refnamediv> <refname>fileinode</refname> @@ -49,9 +49,8 @@ <![CDATA[ <?php $filename = 'index.php'; -if(getmyinode() == fileinode($filename)) -{ - echo('You are checking the current file.'); +if (getmyinode() == fileinode($filename)) { + echo 'You are checking the current file.'; } ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/ftruncate.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/filesystem/functions/ftruncate.xml diff -u phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.14 phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.15 --- phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.14 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/ftruncate.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.14 --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ftruncate"> <refnamediv> @@ -105,7 +105,7 @@ $handle = fopen($filename, 'r+'); ftruncate($handle, rand(1, filesize($filename))); rewind($handle); -echo(fread($handle, filesize($filename))); +echo fread($handle, filesize($filename)); fclose($handle); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/link.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/filesystem/functions/link.xml diff -u phpdoc/en/reference/filesystem/functions/link.xml:1.11 phpdoc/en/reference/filesystem/functions/link.xml:1.12 --- phpdoc/en/reference/filesystem/functions/link.xml:1.11 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/link.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.link"> <refnamediv> <refname>link</refname> @@ -58,8 +58,8 @@ <![CDATA[ <?php -$source = "source.ext"; // This is the file that already exists -$dest = "newfile.ext"; // This the filename that you want to link it to +$source = 'source.ext'; // This is the file that already exists +$dest = 'newfile.ext'; // This the filename that you want to link it to link($source, $dest); ?> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/pclose.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/filesystem/functions/pclose.xml diff -u phpdoc/en/reference/filesystem/functions/pclose.xml:1.8 phpdoc/en/reference/filesystem/functions/pclose.xml:1.9 --- phpdoc/en/reference/filesystem/functions/pclose.xml:1.8 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/pclose.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.pclose"> <refnamediv> <refname>pclose</refname> @@ -49,7 +49,7 @@ <programlisting role="php"> <![CDATA[ <?php -$handle = popen("/bin/ls", "r"); +$handle = popen('/bin/ls', 'r'); pclose($handle); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/readfile.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/filesystem/functions/readfile.xml diff -u phpdoc/en/reference/filesystem/functions/readfile.xml:1.11 phpdoc/en/reference/filesystem/functions/readfile.xml:1.12 --- phpdoc/en/reference/filesystem/functions/readfile.xml:1.11 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/readfile.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.readfile"> <refnamediv> <refname>readfile</refname> @@ -72,7 +72,7 @@ <?php $file = 'monkey.gif'; -if(file_exists($file)) { +if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/rewind.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc/en/reference/filesystem/functions/rewind.xml diff -u phpdoc/en/reference/filesystem/functions/rewind.xml:1.12 phpdoc/en/reference/filesystem/functions/rewind.xml:1.13 --- phpdoc/en/reference/filesystem/functions/rewind.xml:1.12 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/rewind.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.rewind"> <refnamediv> <refname>rewind</refname> @@ -64,7 +64,7 @@ fwrite($handle, 'Foo'); rewind($handle); -echo(fread($handle, filesize('output.txt'))); +echo fread($handle, filesize('output.txt')); fclose($handle); ?> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/rmdir.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/filesystem/functions/rmdir.xml diff -u phpdoc/en/reference/filesystem/functions/rmdir.xml:1.13 phpdoc/en/reference/filesystem/functions/rmdir.xml:1.14 --- phpdoc/en/reference/filesystem/functions/rmdir.xml:1.13 Mon Oct 13 19:26:50 2008 +++ phpdoc/en/reference/filesystem/functions/rmdir.xml Tue Oct 14 15:10:17 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.rmdir"> <refnamediv> <refname>rmdir</refname> @@ -83,8 +83,7 @@ <programlisting role="php"> <![CDATA[ <?php -if(!is_dir('examples')) -{ +if (!is_dir('examples')) { mkdir('examples'); }