reading/parsing file names
| From: | koly | Date: | Sat, 25 Oct 2003 22:41:48 +0000 |
| Subject: | reading/parsing file names | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167588@lists.php.net to get a copy of this message | ||
my problem:
I've got a list of files in a directory, and I'd like to get a only of
filenames that end in ".jpg", however, exlude the files that end in
".thumb.jpg"
ex:
file.php
index.htm
photo.jpg
photo.thumb.jpg
etc
how can I count only those files that end with ".jpg" ?
Any help appreciated.
--
koly out.