获取header信息 function _get_all_header() { // 忽略获取的header数据.这个函数后面会用到.主要是起过滤作用 $ignore = array('host','accept','content-length','content-type'); $headers = array(); //这里大家有兴趣的话,可以打印一下.会出来很多的header头信息.咱们想要的部分,都是‘http_'开头的.所以下面会进行过滤输出. foreach($_SERVER as