判断远程图片是否存在

public function img_exits($url)
{
if(file_get_contents($url,0,null,0,1))
return 1;
else
return 0;
}