title: PHP: how do I copy a temp file upload to multiple places?
body: <p>how can I copy two times the same file? I'm trying to do something like this:</p>
  
  <pre><code>                copy($file['tmp_name'], $folder."1.jpg");
              copy($file['tmp_name'], $folder."2.jpg");
              copy($file['tmp_name'], $folder."3.jpg");
  </code></pre>
  
  <p>And how many time does temp files has before it's destroyed by the server?</p>
  
  <p>I try using move_uploaded_file also, but I can't make it work. I want to generate 2 thumbs from an uploaded file. </p>
  
  <p>Some help?</p>
  
  <p>Thanks, </p>