Home  >  Article  >  Backend Development  >  php.ini prohibits phpinfo() from running method_PHP Tutorial

php.ini prohibits phpinfo() from running method_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:09:541552browse

We just need to add

in php tutorial.ini

disable_functions =phpinfo


A function disable_functions is introduced in php.ini. This function is quite useful and can be used to disable some functions. For example, if you add disable_functions = passthru exec system popen to php.ini, then when executing these functions, you will be prompted with warning: system() has been disabled for security reasons, and the program will terminate


More details

Look for disable_functions and replace it with the following
disable_functions =phpinfo,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629714.htmlTechArticleWe only need to add disable_functions in php tutorial.ini =phpinfo php.ini has introduced a function disable_functions, this function More useful, you can use it to disable some functions. For example...
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