php.ini禁止 phpinfo()不运行方法

来源:互联网 发布:淘宝精品下载 编辑:程序博客网 时间:2024/05/02 04:55

我们只要在php.ini增加

disable_functions =phpinfo


php.ini里引入了一项功能disable_functions ,这个功能比较有用,可以用它禁止一些函数。比如在php.ini里加上disable_functions = passthru execsystem popen 那么在执行这些函数的时候将会提示warning: system() has been disabledfor security reasons,同时程序终止运行


更多详细

查找disable_functions然后用下面的替换 
disable_functions=phpinfo,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source


0 0
原创粉丝点击