title: Can't upload file to Apache 2.2
body: <p>Apache/2.2.15 (Win32) PHP/5.3.2</p>
  
  <p>I'm trying to upload a file to Apache and my PHP script tells me everything goes well (status code 0), but the file is not in the temp directory. The PHP answer is always coming immediately, regardless of the file size. The PHP Error log doesn't show any errors at all.</p>
  
  <p>The Apache server is running on its own user account with full access to the log and doc folders.</p>
  
  <p>PHP.ini</p>
  
  <pre><code>file_uploads = On
  upload_tmp_dir =
  upload_max_filesize = 10M
  upload_tmp_dir="C:\WINDOWS\Temp"
  </code></pre>
  
  <p>send.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;body&gt;
  
    &lt;form enctype="multipart/form-data" action="upload.php" method="post" &gt;
      &lt;input type="hidden" name="MAX_FILE_SIZE" value="10000000" /&gt;
      Send this file: &lt;input name="userfile" type="file" /&gt;
      &lt;input type="submit" value="Send File" /&gt;
    &lt;/form&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>upload.php</p>
  
  <pre><code>&lt;?php
    // In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
    // of $_FILES.
  
    echo '&lt;pre&gt;';
    print_r($_FILES);
    echo '&lt;/pre&gt;';
  ?&gt;
  </code></pre>
  
  <p>The result look like this</p>
  
  <pre><code>Array
  (
      [userfile] =&gt; Array
          (
              [name] =&gt; strings.lua
              [type] =&gt; application/octet-stream
              [tmp_name] =&gt; C:\WINDOWS\Temp\phpC0.tmp
              [error] =&gt; 0
              [size] =&gt; 9935
          )
  
  )
  </code></pre>
  
  <p>The file C:\WINDOWS\Temp\phpC0.tmp doesn't exists.</p>
  
  <p>Are there any other considerations/configurations that I have missed out?
  The Apache server has been running with PHP for over 5 years and works fine in all other aspects. I can't upgrade Apache or PHP to a newer version because this is an application in production and the customer won't risk to an upgrade.</p>