phpnow中 没法使用exec()函数

Warning: exec() has been disabled for security reasons in 。。。 php


exec()函数没法使用 shell

程序报错:Warning: exec() has been disabled for security reasons in apache

缘由:在php.ini中存在 disable_functions配置,默认配置中,cli执行函数都是被 禁止的,若是须要的话,须要在php.ini中将 disable_functions = exec , popen, system …. ,将你须要执行的函数从列表中删掉在重启apache便可 。 函数

彻底是配置的问题。 spa

php-apache2handler.ini get

php.ini it

disable_functions = proc_open, popen, exec, system, shell_exec, passthru io

相关文章
相关标签/搜索