I am working on a community site that lets users upload a photo to be viewed on their profile. I have a simple upload photo script working, but I need to figure out a script that changes the name of the file they upload to a unique random name so that users photos will not have matching names. Only 1 photo is allowed per user so I need to also figure out how to make a script that deletes the users old photo when uploading a new one. HELP!
Thanks,
Jesse