List image files using PHP — and be case-sensitive

Wraxiacoiva

New Member
A drop-box directory for image files has collected variants by letter-case, for example:\[code\]Bonsai.jpg, BONSAI.jpg, Bonsai.JPG, bonsai.jpg \[/code\]I am making a web app using CodeIgniter to manage these documents on a remote server. This means using[*]file_exists() or is_file() to verifya file's presence[*]HTML img tag to display the file graphicallyBut both these tools use the first match they find, regardless of case. How can I deal with this? (I noticed this similar question as this, but for Delphi instead of PHP.)
 
Back
Top