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.
Nevermind, I figured out how to rename the file, but there are quite a few other problems I've got here, which is beginning to make me mad here.
What I need is to be able to upload either a file from a website (http://www.domain.com/images/image.jpg) or from a hard disk (C:/images/image.jpg), and the problem here is that I only can do from hard disk.
Another problem I've got is that I don't know how to check if a certain file with a certain name already exists, and deleting it if it exists before I upload the new file with that same name in there.Reply
What I need is to be able to upload either a file from a website (http://www.domain.com/images/image.jpg) or from a hard disk (C:/images/image.jpg), and the problem here is that I only can do from hard disk.
Another problem I've got is that I don't know how to check if a certain file with a certain name already exists, and deleting it if it exists before I upload the new file with that same name in there.