摘要:
get_headers — 取得服务器响应一个 HTTP 请求所发送的所有标头$url = 'http://www.girdear.cn';print_r(get_headers($url));print_r(get_headers($url, 1));以上例程的输出类似于:Array( [0] => HTTP/1.1 200 OK [1] => Date: Sat, 29 May 2004 12:28:13 GMT [2] => Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) [3] => Last-Modif 阅读全文