title: How to check if remote file is image using get_headers
body: <pre><code>$headers = get_headers("http://www.domain.com/image.jpg");
  </code></pre>
  
  <p>How do I make sure the file is an actual image using this?</p>