1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php /* tree view example * * Usage: php tree.php <path> * * Simply specify the path to tree with parameter <path>. * * (c) Marcus Boerger */ require_once("sub_dir.inc"); foreach(new sub_dir($argv[1]) as $f) { echo "$f\n"; } ?>