summaryrefslogtreecommitdiff
path: root/ext/spl/examples/directorytree.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/examples/directorytree.php')
-rwxr-xr-xext/spl/examples/directorytree.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/spl/examples/directorytree.php b/ext/spl/examples/directorytree.php
index 4f6612a1fd..ecaddbe33d 100755
--- a/ext/spl/examples/directorytree.php
+++ b/ext/spl/examples/directorytree.php
@@ -1,16 +1,14 @@
<?php
-if (!class_exists('DirectoryTreeIterator', false)) {
- require_once(dirname(__FILE__). '/directorytreeiterator.inc');
-}
-
-/** tree view example
+/** @file directorytree.php
+ * @brief Program Directory tree example
+ * @ingroup Examples
+ * @author Marcus Boerger
+ * @date 2003 - 2004
*
- * Usage: php directorytree.php <path> [<start> [<count>]]
+ * Usage: php directorytree.php \<path\> [\<start\> [\<count\>]]
*
- * Simply specify the path to tree with parameter <path>.
- *
- * (c) Marcus Boerger, 2003
+ * Simply specify the path to tree with parameter \<path\>.
*/
if ($argc < 2) {
@@ -26,6 +24,8 @@ EOF;
exit(1);
}
+if (!class_exists("DirectoryTreeIterator")) require_once("directorytreeiterator.inc");
+
$length = $argc > 3 ? $argv[3] : -1;
echo $argv[1]."\n";