Periksa gambar tersedia di server PHP

if (file_exists('http://www.mydomain.com/images/'.$filename)) {
 … }
Lokesh003Coding