快在 php.ini 禁用函数吧:

  • disable_functions = dl,exec,popen,system,phpinfo,passthru,shell_exec,proc_open,proc_close,show_source,escapeshellarg,escapeshellcmd复制代码

完整原文:http://www.zntec.cn/archives/disable_functions.html