When we configure the PHP environment, we often write phpinfo(); this function is used to test whether the PHP environment is installed successfully, but often this function also brings security risks to the system, so how to turn off this function? Here is a method:
Modify the php.ini file and find the following line in it ,
Copy the code The code is as follows:
disable_functions = ; This directive allows you to disable certain
; functions for security reasons. It receives
; a comma separated list of function names.
; This directive is * NOT* affected by whether
; Safe Mode is turned on or off.
Write it as
disble_functions = phpinfo
Restart apache to block the phpinfo(); function.
http://www.bkjia.com/PHPjc/327443.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327443.htmlTechArticleWhen we configure the php environment, we often write phpinfo(); this function is used to test whether the php environment is installed successfully, but Often this function will also bring security risks to the system, so how to make...