title: PHP - How to upload a file in more than one directories
body: <p>How can I upload a single file (ex.sample.jpg) in more than one folder (ex. folder1 and folder2) using php</p>
  
  <p>I tried using for loop but it wont work its move the file (sample.jpg) to the first folder (folder1) only, while moving the same file to the second folder (folder2) it throws an error</p>