mirror of
https://github.com/php/php-src.git
synced 2024-10-05 08:46:11 +00:00
18 lines
282 B
PHP
Executable File
18 lines
282 B
PHP
Executable File
<?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], true, isset($argv[2]) ? $argv[2] : false) as $f) {
|
|
echo "$f\n";
|
|
}
|
|
|
|
?>
|