title: php file upload problem
body: <p>This code works properly in my localhost. I am using xampp 1.7.3. but when I put it in the live server it shows <code>Possible file upload attack!</code>. 'upload/' is the folder under 'public_html' folder on the server. I can upload files via other script in that directory.</p>
  
  <pre><code>&lt;?php
  
  $uploaddir = '/upload/';//I used C:/xampp/htdocs/upload/ in localhost. is it correct here?
  $uploadfile = $uploaddir . basename($_FILES['file_0']['name']);
  
  echo '&lt;pre&gt;';
  if (move_uploaded_file($_FILES['file_0']['tmp_name'], $uploadfile)) {
      echo "File is valid, and was successfully uploaded.\\n";
  } else {
      echo "Possible file upload attack!\\n";
  }
  
  echo 'Here is some more debugging info:';
  print_r($_FILES);
  
  print "&lt;/pre&gt;";
  
  ?&gt;
  </code></pre>