Woohoo! That code worked. Thanks mate.Jenk wrote:You could integrate http://us2.php.net/manual/en/function.fnmatch.php or just plain old preg_match().Code: Select all
foreach (glob($dir . '/*') as $file) { if (preg_match('/' . $pattern . '/i', $file)) $files[] = $file; }
Scan through directories with wildcards
Moderator: General Moderators