I am using following
if ($dataprev['imagefile']!='' && getimagesize('http://localhost/branches/standard/uploads/' . $dataprev['imagefile']) !== false) {
$html .= ' <img src="http://localhost/branches/standard/uploads/' . $dataprev['imagefile'] . '" height="100" border="0"/>';
}
To check if image exist. For some reason it doesnt work well. The app tries to load some unexisting images. What is the problem and how to do it better?