title: XAMPP php file upload to folder fails
body: <p>Some weeks ago I had this html/php code to upload for instance a .txt file to a specific folder in my wwwroot directory on my host server, it all worked as desired.</p>
  
  <p>As my subscription which I had for the host server, ran out. I was forced to temporarily copied all my html/php files to my xampp (htdocs) folder. Now when I try to upload a specific folder via localhost/ it gives me the following message:</p>
  
  <pre><code>Upload failed
  
  Here is some more debugging info:Array
  
  (
      [uploaded_file] =&gt; Array
          (
              [name] =&gt; FREESTYLE.txt
              [type] =&gt; text/plain
              [tmp_name] =&gt; /Applications/XAMPP/xamppfiles/temp/php5Bg8XM
              [error] =&gt; 0
              [size] =&gt; 34
          )
  
  )
  </code></pre>
  
  <p>I have no idea what is going on, perhaps a xampp config file that doesn't let me upload files to any folder in xampp?</p>
  
  <p>the code I use for uploading files is respectfully as follows:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
  &lt;style type="text/css"&gt;
  body{
      background-image: url("images/bg.jpg");
      background-color: #844903;
      }
      .logo{
      position: absolute;
      top: 40px;
      right: 850px;
      }
      h1{
      position: absolute;
      top: 200px;
      right: 820px;
      color: #a86b00;
      }  
      &lt;/style&gt;
  
   &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
       &lt;div class="logo"&gt;&lt;img src="images/logo.jpg" alt="logo"&gt;&lt;/div&gt;
  
      &lt;h1&gt;Please Upload Your Notes:&lt;/h1&gt;
  
     &lt;form enctype="multipart/form-data" action="upload.php" method="POST"&gt;
      &lt;input type="hidden" name="MAX_FILE_SIZE" value="512000" /&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>PHP:</p>
  
  <pre><code>&lt;?php
  
  $uploaddir = '/uploads/';
  $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
  
  echo "&lt;p&gt;";
  
  if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
    echo "File is valid, and was successfully uploaded.\n";
  } else {
     echo "Upload failed";
  }
  
  echo "&lt;/p&gt;";
  echo '&lt;pre&gt;';
  echo 'Here is some more debugging info:';
  print_r($_FILES);
  print "&lt;/pre&gt;";
  
  ?&gt; 
  </code></pre>
  
  <p>Anyone an idea what's going on?</p>
  
  <p>Thank you for you time.</p>
  
  <p>-M</p>