I created a script to load an image from an URL using CURL. To test that the file is a JPG, I'm using ($info['content_type'] == 'image/jpeg'). It works on most of the urls, but some return a html type : e.g http://www.super-fond.fr/IMAGES_VOITURES/lexus/2005-Lexus-LF-A-Concept-R-1280x960.jpg Could anyone tell me why this URL is html ?
Thanks
super-fond.fr, as this is a server configuration problem. I suspect Browsers looks at the extension as well to determine file type, which is why they can see it...imagecreatefromstring($string)to check if it's an image.