I am in the middle of coding up a property portal. I am stuck on checking images. I know how to check if an image url is set. But the problem is detecting if there is actual
Use getimagesize() to ensure that the URL points to a valid image.
if (getimagesize($imageURL) !== false) { // display image }