php 浏览器隐藏PHP版本信息的方法
比如下面的案例:

响应头中显示了PHP的版本信息,PHP如果想隐藏掉需要:
<?php header_remove('X-Powered-By'); ?>
作用:移除请求头中的X-Powered-By字段
目的:隐藏PHP版本信息
本文来自博客园,作者:Carvers,转载请注明原文链接:https://www.cnblogs.com/carver/articles/18920215
比如下面的案例:

响应头中显示了PHP的版本信息,PHP如果想隐藏掉需要:
<?php header_remove('X-Powered-By'); ?>
作用:移除请求头中的X-Powered-By字段
目的:隐藏PHP版本信息
本文来自博客园,作者:Carvers,转载请注明原文链接:https://www.cnblogs.com/carver/articles/18920215