【发布时间】:2012-10-24 20:19:04
【问题描述】:
是否可以使用 PHP 获取当前请求的 http 标头?我不使用 Apache 作为 Web 服务器,而是使用 nginx。
我尝试使用getallheaders(),但我得到了Call to undefined function getallheaders()。
【问题讨论】:
-
正如您在我的回答中看到的,您仍然可以使用 getallheaders()
标签: php nginx http-headers