title: Call to undefined function exif_imagetype()
body: <p>I am trying to get <code>Mime-Type</code> for <code>image-types</code> as follow:</p>
  
  <pre><code>if(!empty($_FILES['uploadfile']['name']) &amp;&amp; $_FILES['uploadfile']['error'] == 0){    
  
      $file = $_FILES['uploadfile']['tmp_name'];
      $file_type = image_type_to_mime_type(exif_imagetype($file));
  
      switch($file_type){
  
          // Codes Here
  
      }
  
  }
  </code></pre>
  
  <p>But it always gives the error <code>Call to undefined function exif_imagetype()</code>. What am I doing wrong here?</p>