<?php function file_exists2($url) { if(@file_get_contents($url,0,null,0,1)) return 1; else return 0; } $url='图片地址'; echo file_exists2($url); ?>
<?php function file_exists2($url) { if(@file_get_contents($url,0,null,0,1)) return 1; else return 0; } $url='图片地址'; echo file_exists2($url); ?>
转载于:https://www.cnblogs.com/hellowzd/p/5953596.html