thinkphp php将服务器上的图片上传到另一台服务器上 另一台服务器上有一个上传的接口:http://www.zhiboblog.com/upload,现在我们将本服务器上的图片上传到这个接口 代码如下: 2022年02月23日 阅读 1,464 views 发表评论 阅读全文
thinkphp thinkphp如何使用rabbitmq消息队列 1.服务器上安装rabbitmq centos7如何安装rabbitmq 2.进入thinkphp项目目录下,使用composer安装php-amqplib库 co... 2021年08月21日 阅读 3,142 views 发表评论 阅读全文
thinkphp thinkphp启动workerman,报错:Class ‘think\Console’ not found thinkphp启动workerman,报错:Class 'think\Console' not found 如何解决呢? 很简单,只要找到/vendor/topt... 2021年08月14日 阅读 2,064 views 发表评论 阅读全文
thinkphp thinkphp设置404页面的方法,thinkphp如何设置404页面 thinkphp设置404页面的方法如下: 打开config目录下面的app.php,在里面加上下面这行代码 'http_exception_template' =... 2021年05月15日 阅读 2,517 views 发表评论 阅读全文
thinkphp thinkphp如何使用sendcloud发送邮件 首先注册一个sendcloud账号,就会有一个API_USER和一个API_KEY 然后根据sendcloud的api接口就可以进行对接了。 2020年08月04日 阅读 1,988 views 发表评论 阅读全文
thinkphp thinkphp如何使用phpmailer发送邮件 首先使用composer安装phpmailer composer require phpmailer/phpmailer 然后就可以在thinkphp项目中使用ph... 2020年08月04日 阅读 1,957 views 发表评论 阅读全文
thinkphp thinkphp如何对接阿里云邮件推送服务 一、thinkphp项目中使用阿里云邮件推送服务 首先下载阿里云邮件推送sdk 下载地址:http://aliyundm.oss-cn-hangzhou.aliyu... 2020年08月04日 阅读 2,377 views 发表评论 阅读全文
thinkphp thinkphp如何实现单点登录,一个账号只能在一个地方登录 首先需要在用户表中建两个字段,session_id和logintime,session_id存用户当前登录的session_id,logintime存最后一次登录的... 2020年06月13日 阅读 3,361 views 发表评论 阅读全文
thinkphp thinkphp5.1运行workerman出现Cannot use Workerman\Worker as Worker because the name is already in use错误 这是因为命名空间冲突导致的错误。 修改方法: 1.找到文件: \vendor\topthink\think-worker\src\command\Server.ph... 2020年05月15日 阅读 2,316 views 发表评论 阅读全文
thinkphp thinkphp如何对接阿里云短信新版sdk 首先下载阿里云新版sdk 进入到项目根目录下,使用composer下载阿里云短信新版sdk composer require alibabacloud/client... 2020年04月30日 阅读 2,509 views 发表评论 阅读全文