如何设置PHP函数禁用

2016-03-25 17:15:14 5119

1.    修改php.ini文件:

ignore_user_abort = On(注意前面的;号要删除)

2.    默认为   ;disable_functions     //将前面的  ;注释去除  


改为disable_functions=exec,system,passthru,popen,pclose,shell_exec,proc_open,dl,chmod,escapeshellarg,

escapeshellcmd,sh2_exec,proc_terminate,proc_close

 

或者disable_functions=exec,system,passthru,popen,pclose,shell_exec,proc_open,curl_exec,multi_exec,dl,

chmod,gzinflate,stream_socket_server,popepassthru,pfsockopen,set_time_limit

fsockopen如果这个函数也禁止,就影响淘宝淘客之类远程API调用的网站无法正常调用数据了。

若需删除对应函数,去除对应函数即可。

 


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: