The other night I decided to write a simple little PHP5 script to force all file extensions to lower case — mainly because when I upload pictures from my Nikon and Canon DSLR I get pictures with upper case file extensions (as I do when I RIP a DVD) and that can create no end of headaches when I place one of those files on a Linux based Apache server.

The script is simple (rather brute force), but it works, and seems to work fairly reliably.


Originally posted 2010-07-11 22:00:27.