PHP配置问题


Issue with PHP configurations

我想禁用一些功能,但我的修改似乎不起作用。

wamp/bin/php/php5.3.13/php.ini下,我取消了disable_functions参数的注释,并添加了以下值:

disable_functions = shell_exec, system

当我查看phpinfo()时disable_functions似乎不受影响,并且没有赋值。我也尝试重新启动wamp及其服务,但结果仍然是一样的。

我是不是错过了一些显而易见的东西?

提前感谢:)

重新启动您的apache web服务器。

Linux:

service restart apache

Windows:

以管理员身份打开命令提示符:

net stop apacheX.Y
net start apacheX.Y

Relace x.y与您的版本

这里只是猜测;也许可以尝试从声明中删除空格,如下所示:

disable_functions=shell_exec,system

让我知道这是否有效,如果无效,我会继续挖掘。