How to hide the php version number: first open the php.ini configuration file; then find the configuration expose_php and modify it to [expose_php = Off]; finally restart apache.
Specific method:
(Recommended tutorial: php graphic tutorial)
Open first php.ini configuration file;
Then modify the configuration expose_php = Off and save the configuration;
(Recommended video tutorial: php video tutorial)
Finally, restart the corresponding web server such as Nginx or Apache.
The above is the detailed content of How to hide php version number. For more information, please follow other related articles on the PHP Chinese website!