Call to undefined function apache_request_headers()

前端 未结 6 965
广开言路
广开言路 2020-11-27 04:58

I\'ve just switched my scripts to a different server. On the previous server this worked flawlessly, and now that I\'ve switched them to a different server, I can\'t underst

6条回答
  •  无人及你
    2020-11-27 05:39

    From the docs, before the release of PHP 5.4.0:

    This function is only supported when PHP is installed as an Apache module.

    PHP 5.4.0 and later support this function unconditionally.

    Said docs also include replacement functions that mimic the functionality of apache_request_headers by stepping through $_SERVER.

提交回复
热议问题