Rename multiple file upload in sequential order
I'm working on a site that allows the optional upload of 5 images. Currently, those images are saved to the "upload" folder in my root directory. I want these images to be renamed as:
"the username_photo2" (if there are two photos)
"the username_photo3" (if there are three photos)
"the username_photo4" (if there are four photos)
"the username_photo5" (if there are five photos)
I am using php/mysql server model, and I am using PurePHPupload to do the image uploading. Any help would be greatly appreciated!