开发者

Alternative to header_remove

I know that header_remove doesn't work in php versions < 5.3 and I use 5.2.1. I am looking for an alternative to header_remove to remove the X-Powered-By header.

I tried using header("X-Powered-By: "); but it still generates a blank header. I tried using Header unset X-Powered-By in .htaccess, but for some reason it's not work开发者_如何学Cing. I am stuck here.


AFAIK, there is no replacement for this function, but you can either alter the result to something bogus as described above, or configure php.ini to block this header with the following statement:

expose_php = Off
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜