title: Permission Denied on move_uploaded_file to another server in IIS
body: <p>I have a PHP web application running on IIS, which allows a user to upload a file from a simple html form. The uploaded file is then moved to a folder on another server. This is working correctly on Apache, but fails on IIS with the error:</p>
  
  <blockquote>
    <p>function['move_uploaded_file']failed to open stream: Permission denied
    in...</p>
  </blockquote>
  
  <p>I've checked all the permissions on the directories. If I run a simple PHP script through the command line to copy a file from the server into the folder on the other server it works correctly, so I suspect the problem is with IIS.</p>
  
  <pre><code> if (move_uploaded_file($_FILES ["file"] ["tmp_name"], "\\\\000.00.0.00\\tia\\web\\upload\\" .$_FILES["file"]["name"])) {
  </code></pre>