方法一:
打开php.ini文件,设置expose_php = Off
方法二:以laravel框架为例,在入口文件中加入代码:
header_remove('x-powered-by');
就行了哦!