I have a php script which uses this below when a user uploads a photo:
if (is_uploaded_file($HTTP_POST_FILES['picture1']['tmp_name'])) {
move_uploaded_file($HTTP_POST_FILES['picture1']['tmp_name'], $full_file_path);
}
I am curious, should I be using this instead? IF so, is there any benefits?
if (is_uploaded_file($HTTP_POST_FILES['picture1']['tmp_name'])) {
copy($HTTP_POST_FILES['picture1']['tmp_name'], $full_file_path);
}
Also when a script ends is the file located @ $HTTP_POST_FILES['picture1']['tmp_name'] automaticly deleted?