class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
What type of collisions are you talking about with rand()? I'm not sure I understand you correctly, are you saying the class checks for existing file names, and if a match is found, it renames the new file? If I need a random file name, what method do you recommend?Reply
I'll dig deeper into my code.
What type of collisions are you talking about with rand()? I'm not sure I understand you correctly, are you saying the class checks for existing file names, and if a match is found, it renames the new file? If I need a random file name, what method do you recommend?