当前标签:thinkphp
thinkphp5开启sql日志记录

thinkphp5开启sql日志记录的方法

阅读全文

thinkphp5控制器中调用command命令行程序

前段时间因为业务需求,需要使用thinkphp5在控制器中调用command命令的方式,发现一些问题记录一下。在thinkphp5控制器中Controller调用command命令行程序实现代码如下

阅读全文

thinkphp5 console命令行程序教程

thinkphp5创建自定义命令行程序教程 第一步,配置command.php文件,目录在application/command.php

阅读全文

php报错BSON field 'count.query' is the wrong type 'array', expected type 'object'问题解决

Thinkphp在连接使用Mongodb的时候,做数据分页或者查询数据总数需要使用count()方法,出现报错信息:BSON field 'count.query' is the wrong type 'array', expected type 'object'。

阅读全文

php报错Array and string offset access syntax with curly braces is deprecated解决

今天使用tp5时,连接数据库出现报错:Array and string offset access syntax with curly braces is deprecated(不赞成使用带花括号的数组和字符串偏移访问语法)。报错原因PHP7.4不再支持使用大括号访问数组以及字符串的偏移。

阅读全文

php文字生成图片报错imagettfbbox(): any2eucjp(): invalid code in input string问题解决

今天做项目,thinkphp使用QrCode生成二维码图片写入中文的时候报错 报错信息:imagettfbbox(): any2eucjp(): invalid code in input string

阅读全文

php文字生成图片报错imagettftext(): any2eucjp(): invalid code in input string问题解决

今天做项目,thinkphp使用QrCode生成二维码图片写入中文的时候报错 报错信息:imagettftext(): any2eucjp(): invalid code in input string

阅读全文

thinkphp 5.0报错pcntl_signal() has been disabled for security reasons问题解决

thinkphp 5.0使用workerman,启动workerman服务端报错 pcntl_signal() has been disabled for security reasons in file /www/wwwroot/shop/vendor/workerman/workerman/Worker.php on line 1107 pcntl_fork() has been disabled for security reasons in file /www/wwwroot/shop/vendor/workerman/workerman/Worker.php on line 1514

阅读全文

thinkphp5.0报错Class 'think\worker\Server' not found问题解决

执行php server.php start后报错 [think\exception\ErrorException] Class 'think\worker\Server' not found 找了一些资料,说的是composer问题、大小写问题等等,都没有解决。报错原因分析:没有加载到类think\worker\Server

阅读全文

皖ICP备2023023451号

Copyright © L1MN.COM 联系方式:l1mnfw@163.com