title: PHP - fopen() failed to open stream: permission denied Windows 10
body: <p>Good evening,</p>
  
  <p>I am fairly new to PHP, right now I am getting permissions errors. I am using a Windows 10 enviroment with PHP, and composer installed. I am trying to pull files from an array of url's, but fopen gives me a permission error. Here is the code:</p>
  
  <pre><code>                        $fp = fopen($result['url'], 'r');
                          $out= fopen($filePath, 'w');
  
                          while ($buf = fread($fp, 5e+9)) {
                              fwrite($out, $buf);
                              usleep(500);
                          }
                          fclose($out);
                          fclose($fp);
                          $finished = true;
  </code></pre>
  
  <p>where $filePath is defined as 'D:\PST'. Is there any massive errors I am missing? D:\PST has full control permissions for the user group 'Everyone'. I am running the powershell window that I prompt PHP from in Administrator. I am using an Administrator account.</p>
  
  <p>Thanks,</p>