How would I get a list of all files matching a pattern?
Hi,
I'm using php 4.4.4. Given a directory $dir, and a prefix, $prefix,
how would I get all files matching the expression
$dir/$prefix%d.jpg
where %d is any unsigned integer?
Thanks, - Dave
.
Relevant Pages
- PHP import_request_variables() arbitrary variable overwrite
... PHP import_request_variablesarbitrary variable overwrite ... GLOBALS programmers wrote applications using this input method, ... E_NOTICE level error if you specify no prefix, ... (Bugtraq) - [Full-disclosure] PHP import_request_variables() arbitrary variable overwrite
... PHP import_request_variablesarbitrary variable overwrite ... GLOBALS programmers wrote applications using this input method, ... E_NOTICE level error if you specify no prefix, ... (Full-Disclosure) - Re: Browser Cache and PHP Namespace
... I had some problems with broser caching behaviors and php name space collision. ... My project be able to include php files anytime anywhere and unlimited amount. ... Prefix your variables if they're important. ... (php.general) - Re: Why is localhost added to all my links ?
... Hal Halloway wrote: ... if you prefix a URL with http:// or just a /, ... > is and localhost is not added. ... PHP does have a mechanism via which you can control what markup elements ... (comp.lang.php) - Re: HELP
... > I am new to PHP and have found in many scripts on the net that people ... > use @ as a prefix to inbuilt function. ... PHP will ignore it and NOT print an errormessage ... (comp.lang.php) |
|