http https
"; $external_link = 'http://rms.cmtc.ac.th/files/importpicstd/01/62201010004.jpg'; if (@getimagesize($external_link)) { echo "image exists "; } else { echo "image does not exist "; } */ $image_url = 'https://i.redd.it/fnxbvvvvvn804hpd31.jpg'; $image_type_check = @exif_imagetype($image_url); if (strpos($http_response_header[0], "200")) { echo "image exists
"; } else { echo "image DOES NOT exist
"; } ?>