How i will check that a particular image with given path exists on another server or not? I have the following code in which i used file get contents but that is taking so long time and due to that sometimes jquery stops working.
function is_file_url_exists($url)
{
if (@file_get_contents($url, 0, NULL, 0, 1))
{
return 1;
}
return 0;
}