title: Turn exif_imagetype into caseinsensitive?
body: <p>How can i make this exif_imagetype() function into caseinsensitive? so that it will allow both .jpg and .JPG ? cant figure this one out.. ive tried with stripos(); with no luck.. Here's my code:</p>
  
  <pre><code>   $allowed_types = array(IMAGETYPE_GIF,IMAGETYPE_JPEG,IMAGETYPE_PNG);
     if (in_array(exif_imagetype($_FILES["uploaded_file"]["tmp_name"]), $allowed_types)){
  
          // SUCCSESFUL
  </code></pre>
  
  <p><strong>GET ERROR WITH STRTOLOWER()</strong></p>
  
  <pre><code>  $allowed_types = array(IMAGETYPE_GIF,IMAGETYPE_JPEG,IMAGETYPE_PNG);
    if (strtolower(in_array(exif_imagetype($_FILES["uploaded_file"]["tmp_name"]), $allowed_types))){
  </code></pre>
  
  <p><strong>IT SAYS: "Warning: exif_imagetype(): Filename cannot be empty in"</strong></p>
  
  <p><strong>EDIT: i only get this error when i try to upload uppercase .JPG pictures.. Most modern camera uses this format, which is pretty annoying if you ask me :D many sites are losing users because of this, we must find a way to solve this problem.</strong></p>