title: Finding an images true extension using pathinfo()
body: <p>I'm using the following to detect an EXTERNAL image's extension:</p>
  
  <pre><code>        $url = (POST_IMAGESELECTOR);
          $path_parts = pathinfo($url);
          $extension = $path_parts['extension'];
  </code></pre>
  
  <p>All images come from various external sources. The sample above works 80% of the time, however, it fails when I run into an image without a traditional extension. An example would be the image located here:</p>
  
  <pre><code>http://media.kohls.com.edgesuite.net/is/image/kohls/227522?wid=1000&amp;hei=1000&amp;op_sharpen=1
  </code></pre>
  
  <p>What would the extension be on an image like this? How can I return the true extension?</p>
  
  <p>Thanks!</p>