Hi there,
I am making a car website, however, i want to make some sort of interactive picture galery, where people can upload theyre own pictures. Basically, ive got a list of car manufacturers. Ive created a seperate directory in my root folder for each manufacturer.
When a user wants to add a picture to the gallery, he/she selects the manufacturer, and selects the file to upload, and it uploads time file to the correct folder.
My problem is, the file name of the file the user wants to upload may already exist in the folder. So, i need some way of dynamically giving the file a unique file name, to prevent this problem.
Does anyone have any idea how i can do this?
If anyone helps me get this working i'll buy them a beer:p
Cheers
Jonno