Home  >  Article  >  Backend Development  >  How to block the phpinfo() function

How to block the phpinfo() function

PHP中文网
PHP中文网Original
2017-03-18 15:18:261095browse

There is this option in the php.ini configuration file

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 as
disble_function = phpinfo

http://www.bkjia.com/PHPjc/629806.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/629806 .htmlTechArticle has this option disable_functions = in the php.ini configuration file; This directive allows you to disable certain ; functions for security reasons. It receives ; a comma separated li...

Related articles:

Why there is no change in phpinfo() after modifying php.ini

Using PHPINFO to implement PHP configuration statistics process

The difference between Local Value (local variable) and Master Value (main variable) in phpinfo

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn