0

I am using following

if ($dataprev['imagefile']!='' && getimagesize('http://localhost/branches/standard/uploads/' . $dataprev['imagefile']) !== false) {
    $html .= '&nbsp;<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?

some_guy
  • 390
  • 2
  • 14

0 Answers0