PHP File Renamer is a script that allows you to easily rename many files. I wrote this script because I once had a problem when I needed to add prefix and lowercase many files on my web server. When you run the script, the script traverses the directory specified and subdirectories(optional) searching for files and renaming them.
PLEASE BACKUP YOUR FILES BEFORE EXECUTING THIS SCRIPT!
CHANGES TO FILES ARE IRREVERSIBLE!
Download it here. License: GNU GPL v2
It's advanced file renamer, for example you can do the following with the file name::
- Uppercase/lowercase filenames, images, pictures
- Add prefix, postfix
- Replace words
- Rename all files ending with some extension (e.g .pdf, jpg, bmp, png, etc.)
- Rename files with a specific word
It is licensed under GPL license.
BE CAREFUL! BECAUSE BAD CONFIGURATION CAN CHANGE FILENAMES YOU DO NOT WANT! BEFORE USING PHP FILE RENAMER BACKUP YOUR FILES!
After you have downloaded the script, extract the contents in an empty folder. Open the file renamer.php and change the values marked to suit your needs. Save the file and upload it to your web server or development server(localhost). Run http://www.example.com/renamer.php (replace example.com with your url). It will report you how many file were renamed. I haven't had much time to play with it, so if you find a bug or just need help just post your question at the forums.