20,398
社区成员




$url = 'http://job.ncsq.net/index2.php';
print_r(get_headers($url));
Array
(
[0] => HTTP/1.1 200 OK
[1] => Server: nginx/1.0.15
[2] => Date: Mon, 15 Dec 2014 08:43:11 GMT
[3] => Content-Type: text/html;charset=gb2312
[4] => Connection: close
[5] => X-Powered-By: PHP/5.2.17p1
[6] => Set-Cookie: PHPSESSID=af64987394c7dbfabbe917ee776cad46; path=/ sessionid 已发出,可认为程序并无严重的错误
[7] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
[8] => Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[9] => Pragma: no-cache
[10] => Content-Length: 0 文档流长度为 0,可能是因为某个条件不满足,程序直接退出了
)