title: PHP copy a file and change the permissions of the copy
body: <p>I am using php copy() function and it works fine, the only thing is when I copy the file the permissions are set to: -rw-r--r-- and I would like to make them readable and writable (777)</p>
  
  <p>is this possible?</p>
  
  <pre><code>copy("../virtual-tours/PTGuiViewer.js", "../virtual-tours/" . $brandNewFolderName . "/PTGuiViewer.js");
  </code></pre>