这是系统自定义函数,用来传回所有 HTTP 变数值,我不知哪里出错?

解决方案 »

  1.   

    getallheaders()只支持Apache发布 在IIS下不支持
      

  2.   

    哦,我试了一下,我的没出什么问题,可能原因是wenyang(wenynag)所说的吧。
    Accept: */*
    Accept-Encoding: gzip, deflate
    Accept-Language: zh-cn
    Connection: Keep-Alive
    Host: 192.168.1.48
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
      

  3.   

    据我所知,目前为止,只有当PHP作为Apache模块时geallheaders(void)这个函数才能使用。另外,Windows平台上Apache的使用率似乎不如IIS高我没有试过IIS是否支持Apache所以,不敢乱说。
      

  4.   

    PHP Manual中
    Notes: getallheaders() is currently only supported when PHP runs as an Apache module
    该函数仅在PHP作为Apache模块运行时被支持。