validkeys Posted February 20, 2007 Share Posted February 20, 2007 When I upload files to my site, I rename the file using a certain naming scheme. I save the name of the file in my database as well as the location of the file. If, weeks later, I change the name of the file in my database, how do I rename the actual file on my server? thanks in advance Link to comment https://forums.phpfreaks.com/topic/39346-renaming-a-file-after-upload/ Share on other sites More sharing options...
Jessica Posted February 20, 2007 Share Posted February 20, 2007 http://us3.php.net/move_uploaded_file You rename it by passing the new file name. Link to comment https://forums.phpfreaks.com/topic/39346-renaming-a-file-after-upload/#findComment-189765 Share on other sites More sharing options...
validkeys Posted February 20, 2007 Author Share Posted February 20, 2007 thanks so much! I Appreciate it Link to comment https://forums.phpfreaks.com/topic/39346-renaming-a-file-after-upload/#findComment-189768 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.