What I am trying to do is open up a folder on a server and rename all the files dynamically.
So if I have a bunch of image files with random names and want to name them with a specific prefix and a number. (assuming they are all jpgs)
pc01.jpg
pc02.jpg
pc03.jpg... as so on...
Is this possible to do.
The reasoning for this is I want people to upload images and on a weekly basis I just want to run a script that will go into this specific folder and rename all of them dynamically.
Any suggestions on how to go about doing this, or is there a better solution.
I am assuming the file functions such as copy(), rename(), will be use but I am not sure on how to go about using these for this specific purpose.
Thanks for your time.