Question Detail

I have multiple links but want to check which one is for ImageURL, How can I validate the link is Image URL?

like this URL is Image URL: and this is normal website URL :

I want to test all URL dynamically auto programmatically validate.

Thread Reply

alex levine

- 1 years ago

If your PHP is enabled for remote connections, you can just use



list($width, $height) = getimagesize(""); 
$img_arr = array('height' => $height, 'width' => $width );
print_r($img_arr); //output - Array ( [height] => 527 [width] => 800 )