What he wrote, but heres some actual code to help:
$newlocation = '/some/where';
$newname = 'blah_and_duh.file';
$newnamelocation = "$newlocation/$newname";
copy($thefile,$newnamelocation);
I broke up the assignments to make it read easier, and also you can use those vars later for other StuffÂȘ.
Diego Huang wrote:
When you call move_uploaded_file(), or copy(), just rename it by passing a destination path with a different file name.
Diego