I need a way to display an open for the user to show a list of folders on the server. I know, sounds dangerous but this is my local server and I am writing a php script to add a number (prepend) to each file in a certain folder. I could hard code the folder name but there are hundreds of folders so that rules that out. It is a windows machine and I have wampserver setup and running.
The folders are located on a different drive than the server. I wrote a program to do this in a stand alone exe file using Delphi but needed to modify it and no longer have delphi. So, in short
2: Once choosen, I need to have that folder name returned into a variable ie: $folder_name =
3: Once I have the folder name I need to be able to rename each file with a number so "thisfile.mp3" would become "01 - thisfile.mp3"
Finally, there are two filetypes of each file in the folders. There is an .mp3 and an .cdg file both of the same name.
So the might be 100 songs all .mp3 and 100 .cdg files with the same name as the song.mp3 files. eg:
Some of the files may have a number on them already or something else that I need to strip first.
I need to be able to strip characters from the beginning of the file in one operation (if I need to) then run a second op which would append the numbers to each file as above.
This will not be done over the web but just on my local machine (and the files are on a usb hard drive).
Any assistance would be appreciated.