title: Crashing on move_uploaded_file command
body: <p>I'm getting a 500 error when executing the command <code>move_uploaded_file</code>. (Note that I am not returning <code>false</code>). Not sure how to get any error messages from this, but that would obviously help!</p>
  
  <p>I start with an array <code>$_FILES</code> that in my test contains metadata on two files (it's a very controlled test). This line used to work just fine when I was only uploading a single file, so I know that it is not a server permissions issue.</p>
  
  <pre><code>&lt;?php
  
  print_r($_FILES);
  $target_dir = "client_resources/";
  
  foreach ($_FILES as $thisFile) {
  
      print_r($thisFile);
  
      $target_file = $target_dir . basename($thisFile['name']);
  
      echo $thisFile['tmp_name'];
      echo $target_file;
  
      if (move_uploaded_file($thisFile['tmp_name'], $target_file)) {
          echo 'uploaded';
      } else {
          // don't know how to get the error message from here
      }
  }
  ?&gt;
  </code></pre>
  
  <p>If I comment out the <code>move_uploaded_file</code> block, I get this output:</p>
  
  <pre><code>Array
  (
      [file0] =&gt; Array
          (
              [name] =&gt; back.jpeg
              [type] =&gt; image/jpeg
              [tmp_name] =&gt; C:\Windows\Temp\php8030.tmp
              [error] =&gt; 0
              [size] =&gt; 3936
          )
  
      [file1] =&gt; Array
          (
              [name] =&gt; images.jpeg
              [type] =&gt; image/jpeg
              [tmp_name] =&gt; C:\Windows\Temp\php8041.tmp
              [error] =&gt; 0
              [size] =&gt; 8257
          )
  
  )
  Array
  (
      [name] =&gt; back.jpeg
      [type] =&gt; image/jpeg
      [tmp_name] =&gt; C:\Windows\Temp\php8030.tmp
      [error] =&gt; 0
      [size] =&gt; 3936
  )
  C:\Windows\Temp\php8030.tmp
  client_resources/back.jpeg
  Array
  (
      [name] =&gt; images.jpeg
      [type] =&gt; image/jpeg
      [tmp_name] =&gt; C:\Windows\Temp\php8041.tmp
      [error] =&gt; 0
      [size] =&gt; 8257
  )
  C:\Windows\Temp\php8041.tmp
  client_resources/images.jpeg
  </code></pre>
  
  <p>I've also tried to put this line in a <code>try-catch</code> block, but I still crash.</p>
  
  <p>Can anyone see why this won't work any longer? Thanks!</p>