title: Don't allow > 2mb images
body: <p>HI!
  How do i check if the users are trying to upload bigger than 2mb files? I would like to deny that and put an error message to the user who is trying to do that.</p>
  
  <p>I know it is something like this, but what shall i change the 50000 to to become 2mb?</p>
  
  <pre><code>if ($_FILES['imagefile']['size'] &gt; 50000 )
  {
  die ("ERROR: Large File Size");
  } 
  </code></pre>