title: php image upload
body: <p>How to make a basic PHP uploader? I want my images to save in my <code>htdocs/myfolder/</code> <br></p>
  
  <p>Here is my code:</p>
  
  <pre>
  &lt;form enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; action=&quot;img_uploader.php&quot;&gt;
      &lt;input type=&quot;file&quot; name=&quot;fileToUpload&quot; /&gt;&lt;br /&gt;
      &lt;input type=&quot;submit&quot; value=&quot;Upload File&quot; /&gt;
  &lt;/form&gt;
  </pre>