php判断远程url是否有效 $url = "http://wx.58haha.cn/1.html";$array = get_headers($url,1);if(preg_match('/200/',$array[0])){ echo ""; print_r($array);}else{ echo "无效url资源!";} PHP 2024-01-19 40 点赞 0 评论 60 浏览