ok i have an upload script that starts with a normal form then nxt page is this upload script
<?
if(isset( $Submit ))
{
//If the Submitbutton was pressed do:
copy ($FILES['imagefile']['tmp_name'], "files/".$FILES['imagefile']['name'])
or die ("Could not copy");
echo "";
echo "Copy Done....";
echo"<br>$imagefile_name";
echo "<img src='/files/$imagefile_name'> ";
}
else {
echo "";
echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")";
}
?>
and finally i have s cript that creats a random number
srand((double)microtime()*1000000);
$unique_str = md5(rand(0,9999999));
print $unique_str;
how do i make it change the filename to the filename+the number+the filetype