php.ini 里有个 disable_functions 开关选项,此选项可关闭一些危险的函数,比如system,exec 等。比如: disable_functions = phpinfo , 如果在文件中调用 phpinfo() 函数,那么在 error_reporting 开启的情况下,会提示如下错误:

Warning: phpinfo() has been disabled for security reasons

屏蔽函数实例:

disable_functions= phpinfo,dl, exec, system

相关文章:

  • 2022-02-17
  • 2021-12-04
  • 2021-12-04
  • 2021-12-31
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-02-06
  • 2022-12-23
  • 2021-12-24
  • 2022-02-24
相关资源
相似解决方案