Copy File in PHP

//the new name will be containing the full path where will be stored (images folder)

 $newname="images/".$image_name;

//we verify if the image has been uploaded, and print error instead

 $copied = copy($_FILES['upload_'.$i]['tmp_name'], $newname);

Tags: 
X