http://hungred.com/how-to/php-check-remote-email-url-image-link-exist/Check Remote Image Link ExistThere are many ways to check whether a particular image link exist after the introduce of PHP 5, GetImageSize. GetImageSize allows us to take in a remote link to retrieve the size of the image. Hence, we can do a simple check such as the one shown below,
$external_link = 'http://www.example.com/example.jpg';
if (@GetImageSize($external_link)) {
echo "image exists";
} else {
echo "image does not exist";
}