作者:氵殳冼臉_885 | 来源:互联网 | 2018-03-23 15:16
php代码
函数描述及例子
//测试代码
$str_url = 'http://127.0.0.2/viewarticle.php?id=119617';
$exits = remote_file_exists($str_url);
echo $exists ? "Exists" : "Not exists";
?>
方法一(需要开启allow_url_fopen):
方法二(需要服务器支持Curl组件):