标签:
$url = ‘‘; $info = parse_url($url); $httpClient = new HttpClient($info[‘host‘]); $httpClient->get($info[‘path‘]); if ($httpClient->getStatus() === ‘404‘) { //处理 }
php中利用HttpClient判断页面状态
原文地址:http://www.cnblogs.com/Bin-x/p/4648658.html