或者

php.ini函数禁用办法

作者:月光边境 浏览:196 发布时间:2018-02-10
分享 评论 0

1.修改php.ini文件:

  ignore_user_abort = On

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

  2.默认为disable_functions =exec,system,passthru,popen,pclose,shell_exec,proc_open,curl_exec,multi_exec,dl,chmod,gzinflate

  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调用的网站无法正常调用数据了。

  若解禁:只需把disable_functions=空

  即:disable_functions =