From c4dd7a1a684490673e25aaf4fabec5df138854c4 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Thu, 14 Mar 2013 05:42:27 +0000 Subject: Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2. --- ext/spl/examples/findfile.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 ext/spl/examples/findfile.php (limited to 'ext/spl/examples/findfile.php') diff --git a/ext/spl/examples/findfile.php b/ext/spl/examples/findfile.php new file mode 100755 index 0000000..60146cb --- /dev/null +++ b/ext/spl/examples/findfile.php @@ -0,0 +1,33 @@ + \ + * + * \ Path to search in. You can specify multiple paths by separating + * them with ';'. + * \ Filename to look for. + */ + +if ($argc < 3) { + echo << + +Find a specific file by name. + + Path to search in. + Filename to look for. + + +EOF; + exit(1); +} + +if (!class_exists("FindFile", false)) require_once("findfile.inc"); + +foreach(new FindFile($argv[1], $argv[2]) as $file) echo $file->getPathname()."\n"; +?> \ No newline at end of file -- cgit v1.2.1