title: PHP Uploading issue Getting Error 0 but move_uploaded_file() is returning false
body: <p>PHP Uploading issue Getting Error 0 but move_uploaded_file() is returning false.  When I print out $_FILES I get </p>
  
  <pre><code>Array ( [uploadedfile] =&gt; Array ( [name] =&gt; flashlog.txt [type] =&gt;
  text/plain [tmp_name] =&gt; /tmp/php0XYQgd [error] =&gt; 0 [size] =&gt; 3334 ) ) 
  </code></pre>
  
  <p>I'm using a basic html/php tutorial which leaves me to believe that it might be a server issue.  I check the php.ini and have upload_max_filesize:2M, post_max_size:8M.  So I'm really confused as I thought error of 0 told me that it was successful.</p>
  
  <p>The code I'm using is</p>
  
  <pre><code>&lt;?php
  
  // Where the file is going to be placed 
  $target_path = 'Test/';
  
  $target_path = $target_path. basename( $_FILES['uploadedfile']['name']); 
  
  if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) 
  {
   echo "The file ".  basename( $_FILES['uploadedfile']['name']). 
   " has been uploaded";
  } 
  else
  {
   echo "There was an error uploading the file, please try again!";
   echo print_r($_FILES);
  }
  ?&gt;
  </code></pre>