dadamssg Posted July 20, 2009 Share Posted July 20, 2009 I'm trying to figure out how to rename an image file that a user uploads...for example if they upload something called "whatever.gif", i want to change it to say "234whatever.gif". $filename = $_FILES['fupload']['name']; $newname = rename($filename, "234".$filename); this is what i tried...with no avail. anybody know how to do this? Link to comment https://forums.phpfreaks.com/topic/166577-how-to-rename-an-image-file/ Share on other sites More sharing options...
Amtran Posted July 20, 2009 Share Posted July 20, 2009 What happens? It just uploads without renaming the file? It doesn't upload at all? What are the permissions of the file/directory? Maybe you could post some more code? Link to comment https://forums.phpfreaks.com/topic/166577-how-to-rename-an-image-file/#findComment-878429 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.