title: 500 Internal Server error while trying to upload a file in form
body: <p>i am making a small application in php.everything works fine in wamp but when i am trying to upload a single fie. it shows me error like this.</p>
  
  <pre><code>Internal Server Error
  
  The server encountered an internal error or misconfiguration and was unable to complete   your request.
  
  Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
  
  More information about this error may be available in the server error log.
  </code></pre>
  
  <p>other forms without img works fine. i have cheked post_max_size in php.ini &amp; upgrade it to 20M , but still problem exits.</p>
  
  <p>For testing i have simple used..</p>
  
  <pre><code>    &lt;?php
      if(isset($_POST['submit']))
      {
          var_dump($_POST);
      }
      ?&gt;
  
      &lt;form action="" method="post" enctype="multipart/form-data"&gt;
  
      &lt;input type="file" name="img" /&gt;
      &lt;input type="submit" name="submit" value="submit" /&gt;
  
      &lt;/form&gt;
  </code></pre>