28:32 ./yaf_cg imooc之后

来源:2-1 准备工作-快速搭建基于Yaf框架的项目环境

dollzcx

2017-07-22

PHP Warning:  shell_exec() has been disabled for security reasons in /home/work/imooc/tmp/yaf-master/tools/cg/yaf_cg on line 28

PHP Warning:  shell_exec() has been disabled for security reasons in /home/work/imooc/tmp/yaf-master/tools/cg/yaf_cg on line 29

PHP Warning:  scandir() has been disabled for security reasons in /home/work/imooc/tmp/yaf-master/tools/cg/yaf_cg on line 85


写回答

1回答

Pangee

2017-07-22

这个报错的意思是“*** 函数被禁用了”

所以,找到你机器里的 php.ini 文件,修改里面内容 disable_functions 这项配置,把里面的 shell_exec 和 scandir 函数解禁,就好啦。

2
3
qq_生命不止奋斗不息_0
如何解禁呢,是删掉的意思吗?
2017-09-25
共3条回复

高性能的PHP API接口开发

掌握核心API接口开发及性能调优,让你的代码运行效率加倍

1044 学习 · 149 问题

查看课程