Best method of moving an uploaded file in PHP?
<p>I have a php script which uses this below when a user uploads a photo:</p>

<pre><code>if (is_uploaded_file($HTTP_POST_FILES['picture1']['tmp_name'])) {
   move_uploaded_file($HTTP_POST_FILES['picture1']['tmp_name'], $full_file_path);
}
</code></pre>

<p>I am curious, should I be using this instead?  IF so, is there any benefits?</p>

<pre><code>if (is_uploaded_file($HTTP_POST_FILES['picture1']['tmp_name'])) {
   copy($HTTP_POST_FILES['picture1']['tmp_name'], $full_file_path);
}
</code></pre>

<p>Also when a script ends is the file located @ $HTTP_POST_FILES['picture1']['tmp_name'] automaticly deleted?</p>
