I have a script in which the user uploads an image. I then create a thumbnail using imagemagick and store it in another folder. Then it takes the file name and stores that with the accompanying information in a MySQL database when the form is submitted. I was wondering how I would change the actual name of the uploaded file (as well as the thumbnail). I heard something about saveas() though I don't know at all how it works. Any help?