Home >Backend Development >PHP Problem >How to hide php information in php header
How to hide php information in php header: first find and open the php.ini configuration file; then change "expose_php=On" to "expose_php=Off".
The operating environment of this article: windows7 system, php7.0.12 version, DELL G3 computer
Hide the php information in the header
If the php version is not hidden by default, you can see the php version in the header. The format is as follows
X-Powered-By: PHP/7.0.12
In the php.ini configuration file, change expose_php = On to Off. .
[Recommended learning: "PHP Video Tutorial"]
The above is the detailed content of How to hide php information in php header. For more information, please follow other related articles on the PHP Chinese website!