thinkphp6学习之命令 command
2022-11-24 11:10:29
191
{{single.collect_count}}

 使用命令之前 之php.ini文件中把禁用的函数药打开

>php think run

报错  同exec() 函数类似, passthru() 函数 也是用来执行外部命令(command)的

删除禁用函数

## 查看版本号php think version

## 生成应用php think build demo

快速创建控制器

执行下面的指令可以生成sphinx应用的Service控制器类库文件

php think make:controller sphinx@Service

 

清除缓存

php think clear

未清缓存之前

清后 依然在 效果不明显

。。。。

 

 

 

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}