Home > Article > Backend Development > php.ini prohibits phpinfo() from running method_PHP Tutorial
We just need to add
in php tutorial.inidisable_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