title: Where is my uploaded file?
body: <p>First issue, where is it suppose to be?</p>
  <p>Accordint to <a href="http://www.php.net/manual/en/features.file-upload.post-method.php" rel="nofollow noreferrer">php.net</a></p>
  <blockquote>
  <p>Files will, by default be stored in the server's default temporary
  directory, unless another location has been given with the
  upload_tmp_dir directive in php.ini. The server's default directory
  can be changed by setting the environment variable TMPDIR in the
  environment in which PHP runs</p>
  </blockquote>
  <p>So I go to my php.ini file and find</p>
  <blockquote>
  <p>upload_tmp_dir = &quot;\xampplite\tmp&quot;</p>
  </blockquote>
  <p>And let me go ahead and post by xhtml code:</p>
  <pre><code>          &lt;div class=&quot;t2_c2&quot;&gt;
              &lt;form name=&quot;f9&quot; enctype=&quot;multipart/form-data&quot; action=&quot;pi5.php&quot; method=&quot;POST&quot;&gt;
              &lt;input type=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;100000&quot; /&gt;
              &lt;input name=&quot;ufile&quot; type=&quot;file&quot; class=&quot;te7&quot; /&gt;
              &lt;/form&gt;
            &lt;/div&gt;
  </code></pre>
  <p>This is a form inside a column, inside a table.</p>
  <p>And last but not least the javascript that submits this form.</p>
  <pre><code>document.f9.submit();
  </code></pre>
  <p>Because there is alot of files non of which appear to be my file in the temp directory I add some debug php code to look at the $_FILES super global associative array.</p>
  <p>The code</p>
  <pre><code>print_r($_FILES['ufile']);
  </code></pre>
  <p>returns this info.</p>
  <blockquote>
  <p>Array ( [name] =&gt; c0.css [type] =&gt; text/css [tmp_name] =&gt;
  F:\xampplite\tmp\php317C.tmp [error] =&gt; 0 [size] =&gt; 10652 ) The file
  c0.css</p>
  </blockquote>
  <p>on a second run in produces</p>
  <blockquote>
  <p>Array ( [name] =&gt; here.gif [type] =&gt; image/gif [tmp_name] =&gt;
  C:\Users\a\AppData\Local\Temp\phpC256.tmp [error] =&gt; 0 [size] =&gt; 8549
  )</p>
  </blockquote>
  <p>which I find odd, that this is not specified in the php.ini file and proves php.net documentation invalid.</p>
  <p>Life is lookin good until I go to the [tmp_name] and find this:</p>
  <p><img src="https://i.stack.imgur.com/ieQlQ.gif" alt="tmp_name directory" /></p>
  <p>No file.</p>
  <p>My plan was to change my php.ini file so that the file is downloaded directly to where I want it, but according the answers below, the file only lasts as long as the php script is running, so this does not appear to be an option or at minimal a simple option.  That was why I did not use the move function at first.</p>