【发布时间】:2013-05-07 23:57:45
【问题描述】:
当我尝试使用此代码时:
header('X-Powered-By: ASP.NET');
header('Server: Microsoft-IIS/7.5');
已发送的标头是:
Server:Apache/2.2.22 (Win64) PHP/5.4.3
X-Powered-By:ASP.NET
我需要做什么?
【问题讨论】:
-
如果您没有收到错误提示已发送标头,您必须调整您的 apache 配置 httpd.apache.org/docs/2.2/mod/core.html#servertokens 并删除 X-Powered-By 取消注释或将
expose_php = off添加到您的php.ini
标签: php http-headers