关闭访问头部的php信息

访问php文件的头部信息,会提示:

HTTP/1.1 200 OK
X-UA-Compatible: IE=EmulateIE7
X-Powered-By: PHP/5.3.3
Content-type: text/html; charset=utf-8
Connection: close
Transfer-Encoding: chunked
Date: Sun, 02 Jan 2011 14:38:49 GMT
Server: Who_knows?

显露出php的版本,需要去php.ini中关闭(默认是开放的,汗一下),在php.ini中找到“expose_php On”,改成Off即可

标签: PHP
评论: 0 | 引用: 0 | 阅读: 6753