cvs: pecl /spl/examples directorytree.php tree.php

From: Date: Sat, 13 Dec 2003 14:40:07 +0000
Subject: cvs: pecl /spl/examples directorytree.php tree.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-581@lists.php.net to get a copy of this message
helly Sat Dec 13 09:40:07 2003 EDT Modified files: /pecl/spl/examples directorytree.php tree.php Log: Show classname Index: pecl/spl/examples/directorytree.php diff -u pecl/spl/examples/directorytree.php:1.7 pecl/spl/examples/directorytree.php:1.8 --- pecl/spl/examples/directorytree.php:1.7 Mon Dec 8 03:28:18 2003 +++ pecl/spl/examples/directorytree.php Sat Dec 13 09:40:06 2003 @@ -24,9 +24,10 @@ $length = $argc > 3 ? $argv[3] : -1; +echo $argv[1]."\n"; foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $file) { //foreach(new DirectoryTreeIterator($argv[1]) as $file) { - echo $file ."\n"; + echo $file . "\n"; } ?> \ No newline at end of file Index: pecl/spl/examples/tree.php diff -u pecl/spl/examples/tree.php:1.6 pecl/spl/examples/tree.php:1.7 --- pecl/spl/examples/tree.php:1.6 Thu Dec 4 14:39:46 2003 +++ pecl/spl/examples/tree.php Sat Dec 13 09:40:06 2003 @@ -26,6 +26,7 @@ exit(1); } +echo $argv[1]."\n"; foreach(new DirectoryGraphIterator($argv[1]) as $file) { echo $file . "\n"; }

« previous php.pecl.cvs (#581) next »