你的位置: 首页>> PHP, 技术天空 >> phpnow中 无法使用exec()函数 Warning: exec() has been disabled for security reasons in

phpnow中 无法使用exec()函数 Warning: exec() has been disabled for security reasons in

热度:



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

我认为网上说读写权限问题的帖子是误人子弟,

exec()函数无法使用

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

原因:在php.ini中存在 disable_functions配置,默认配置中,cli执行函数都是被 禁止的,如果需要的话,需要在php.ini中将 disable_functions = exec , popen, system …. ,将你需要执行的函数从列表中删掉在重启apache即可 。

完全是配置的问题。

随机日志

留个脚印

Copyright © 2010 高度PHP All rights reserved.
Designed by Modified by ifanqie. Powered by WordPress.