Jump to content

how to rename an image file????


dadamssg

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.