check image is available on server php
snippet in php

check image is available on server php

user1788

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