diff options
Diffstat (limited to 'ext/spl/examples/findfile.php')
| -rwxr-xr-x | ext/spl/examples/findfile.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/ext/spl/examples/findfile.php b/ext/spl/examples/findfile.php index 58f53764cf..03c06eaa46 100755 --- a/ext/spl/examples/findfile.php +++ b/ext/spl/examples/findfile.php @@ -1,14 +1,16 @@ <?php -/** Find a specific file by name. +/** @file findfile.php + * @brief Program Find a specific file by name. + * @ingroup Examples + * @author Marcus Boerger + * @date 2003 - 2004 * - * Usage: php findfile.php <path> <name> + * Usage: php findfile.php \<path\> \<name\> * - * <path> Path to search in. You can specify multiple paths by separating + * \<path\> Path to search in. You can specify multiple paths by separating * them with ';'. - * <name> Filename to look for. - * - * (c) Marcus Boerger, 2003 - 2004 + * \<name\> Filename to look for. */ if ($argc < 3) { @@ -25,5 +27,7 @@ EOF; exit(1); } +if (!class_exists("FindFile")) require_once("findfile.inc"); + foreach(new FindFile($argv[1], $argv[2]) as $file) echo $file->getPathname()."\n"; ?>
\ No newline at end of file |
