title: Upload the same file into multiple folders
body: <p>I have an uploading form, and when i select the file,i need it to be uploaded in multiple folders.Any ideas how to do that? I've tried with a loop like the following one:</p>
  
  <pre><code>foreach($_POST['check'] as $check){     
      move_uploaded_file($_FILES['doc']['tmp_name'], $target_path);
      chmod($target_path,0777);    
  }
  </code></pre>
  
  <p>But it only upload once.Any ideas please?</p>