I am trying to check whether image file is exist on server Or not. I am getting image path with other server.
Please check below code which I've tried,
$urlCheck = getimagesize($resultUF['destination']);
if (!is_array($urlCheck)) {
$resultUF['destination'] = NULL;
}
But, it shows below warning
Warning: getimagesize(http://www.example.com/example.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in
Is there any way to do so?
Thanks