ICode9

精准搜索请尝试: 精确搜索
  • thinkphp6---原生SQL查询2022-09-06 13:02:56

    最近开发项目,由于要考虑大数据的处理,对比了一下,使用Thinkphp执行SQL语句的效率,要比使用模型来做大数据的更新,效率要高很多。 总结:复杂的运算,以及对大数据的查询,更新,建议使用SQL语句: 1、query 查询方法 Db::query("select * from think_user where status=:id", ['id' => 1]); Db:

  • TP5框架 之连接其他数据库配置2022-08-27 15:02:52

    一、代码 /** * @throws \think\Exception */ protected function getDb(){ if(!$this->my_db){ $this->my_db = Db::connect(config('db2')); } } config.php  

  • F2F-Discussing transportation2022-08-21 16:32:59

    Do you live in tianjing? In the past,what kind of traffic/transportation do you usually choose,when you plan to travel somewhere? 在高峰时段 in peak hour Have you taken several lessons in a row? Have you taken several lessons in today's afternoon? '

  • Change Your Think2022-08-21 09:05:54

    思维 To Be Human 爱具体的人;做具体的事 思考方式 遇到问题不要紧张,要冷静地思考,深呼吸一下 开放的心态 open, 接受不同的声音 你怎么想?学习做事,都要带着自己的思考和实践哈,需要自己琢磨 原理重于实现:原理是不变的,每个人的视线都可能会改变 接口定义重于接口实现 Peace & Lov

  • ThinkPHP5 远程命令执行漏洞2022-07-15 01:02:02

    一、ThinkPHP介绍 轻量级框架,内部OOP和面向过程代码都存在,是国人自己开发的框架。 ThinkPHP是一个快速、兼容而且简单的轻量级国产PHP开发框架,诞生于2006年初,原名FCS,2007年元旦正式更名为ThinkPHP,遵循Apache2开源协议发布,从Struts结构移植过来并做了改进和完善,同时也借鉴了国外很

  • TP6消息队列2022-06-22 21:01:18

    什么是消息队列机制 消息(Message):传输的数据。 队列(Queue):队列是一种先进先出的数据结构。 消息队列从字面的含义来看就是一个存放消息的容器。 消息队列可以简单理解为:把要传输的数据放在队列中。 把数据放到消息队列叫做生产者 从消息队列里边取数据叫做消费者 一般来说,消息

  • thinkpphp--数据库连接2022-06-17 19:02:00

    1.要连接数据库首先需要配置tp5/application/database.php文件,在文件中有提示信息,修改增加:数据库名,用户名,密码 ,数据库表前缀信息 // 数据库名 'database' => 'think', // 用户名 'username' => 'admin', // 密码 'password'

  • Think3 ORM2022-06-04 10:32:52

    4月30日,手痒,从老的TP 3.2 框架中,剥离了ORM的部分,发布了一个 composer 项目。 安装方式: composer require x3d/think3-orm 还参照最新的 tp6 中的 think-orm 做了简单的phpunit测试,见 tests/HelloTest.php 文件。 这样的项目,有何价值呢?对个人而已,有二:假定某些遗留项目可以使用该库

  • 初赛-ezpop-writeup2022-05-31 09:36:42

    先在网上搜一波 ThinkPHP V6.0.12LTS 的漏洞 简书:https://www.jianshu.com/p/92018015ec5e POC <?php namespace think{ abstract class Model{ private $lazySave = false; private $data = []; private $exists = false; protected $table;

  • ubuntu18.04安装ThinkPHP62022-05-23 14:03:52

    一、安装Lamp环境所需应用(apache、mysql、php)sudo apt install apache2 sudo apt install mysql-server sudo apt install php安装 composercurl -sS https://getcomposer.org/installer | phpmv composer.phar /usrl/bin/composercomposer config -g repo.packagist composer h

  • Think different2022-05-21 12:36:14

    Here's to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They're not fond of rules. And they have no respect for the status quo. You can quote them, disagree

  • PHP反序列化链分析2022-05-09 11:32:25

    前言 基本的魔术方法和反序列化漏洞原理这里就不展开了。 给出一些魔术方法的触发条件: __construct()当一个对象创建(new)时被调用,但在unserialize()时是不会自动调用的 __destruct()当一个对象销毁时被调用 __toString()当一个对象被当作一个字符串使用 __sleep() 在对象在被序

  • tp5.1 + think-queue + supervisor2022-04-14 00:04:29

    项目用的是 TP5.1 框架,消息队列用的think-queue消息队列,结合 supervisor 进程管理使队列进程常驻。在这里记录一下顺便分享给大家,下面逻辑是加入队列、消费队列和写入数据库。 一、tp5.1的安装方法  用 composer 安装最新稳定版本 composer create-project topthink/think 5.1

  • 2022年雅思口语题库1月-4月汇总(2)part 2&3旧题汇总(1)People/Animal(1)2022-04-06 01:02:32

    https://ielts.koolearn.com/20211129/854302.html 一个巧妙解决某个问题的人 Describe a person who gave a clever solution to a problem. You should say: Who the person is When you met this person What the problem was And explain why you think it was a clever solut

  • thinkphp6创建多应用模式2022-03-21 08:35:56

    安装thinkphp6 composer create-project topthink/think demo 安装多应用模式扩展 composer require topthink/think-multi-app 新建应用admin php think build admin 命令行出现succeed! 说明成功!再删除app目录下的controller 测试:http:/127.0.0.1/admin/index/index  

  • 英语介绍2022-03-20 09:34:30

    书 这本书作者是刘未鹏,一个程序员,就职于微软。原本以为和时间管理有关,看过才发现,书中结合了学习、思考、心智模式等领域。作者将他日常生活中的思考记录在自己博客中并形成这本书。书中作者教我们如何利用平时看不见的暗时间有效地学习,思考。我认为它非常有趣而且学到很多。   Th

  • TP生产环境出现读写失败的错误的解决方案2022-03-10 14:01:12

    类似报错:   _STORAGE_WRITE_ERROR_:../Runtime/Cache/Index/c071f06ce0af12be4795d7468795a92 Fatal error: Uncaught Error: Call to undefined function Think\C() in /home/wwwroot/ThinkPHP/Library/Think/Think.class.php:304 Stack trace: #0 /home/wwwroot/ThinkPHP/Libr

  • thinkphp6.*安装与使用think-addons2022-03-03 11:36:23

    安装 composer require zzstudio/think-addons 配置 生成配置 系统安装后会自动在 config 目录中生成 addons.php 的配置文件, 如果系统未生成可在命令行执行 php think addons:config 快速生成配置文件 公共配置 'addons' => [ // 是否自动读取取插件钩子配置信息(默认是

  • TP5的消息队列2022-02-25 15:01:51

    1.首先查看项目中是否已经有think-queue目录:/vendor/topthink/       如果没有,则用composer安装(安装composer参考:http://www.runoob.com/w3cnote/composer-install-and-usage.html ),安装think-queue先进入到项目根目录,运行   composer require topthink/think-queue

  • 2022-2023年英语周报七年级第20期答案汇总2022-02-18 08:00:21

    进入查看: 2022-2023年英语周报七年级第20期答案汇总   So why bother even to try imagining life far in the future? Here are two reasons. First, unless we remember how short our own lives are compared with the whole human history, we are likely to think our own int

  • think-cell产品介绍2022-02-17 11:32:11

    图表制作和布局软件 think-cell 可协助您在几分钟内创建令人惊艳的图表、推动幻灯片布局,并自动执行定期报告。使用单一 PowerPoint 加载项可以实现所有这些功能。 01 工作时间缩短70% 1.在几分钟内创建40多种图表类型 2.瀑布图、甘特图、百分堆积图和议程 3.数十种数据驱动型视觉

  • PHP错误:Non-static method think\Request::post() should not be called statically2022-02-01 13:30:13

    tp5.1 提示:Non-static method think\Request::post() should not be called statically 则是命名空间的问题,解决方法: 将引入use think\Request;的地方修改成use think\facade\Request;

  • 【2022/1/13】thinkphp源码无差别阅读(十八)2022-01-13 10:02:38

    thinkphp源码无差别阅读(十八) framework阅读 think/route/dispatch/Callback.php 执行:exec think/route/dispatch/Controller.php 属性:controller、actionName初始化:init执行:exec使用反射机制注册控制器中间件:registerControllerMiddleware实例化访问控制器:controller think/

  • Lesson1 - 课文(1 / 60)2022-01-07 14:00:35

    A puma at large at large 逃遁的, 没有被控制的 -- The thief is still at large Pumas are large, cat-like animals which are found in America. cat-like bear-like animals lady-like behavior child-like simplicity an angel-like girl crystal-like eyes flu-like symp

  • 商品-订单-售后2021-12-30 12:02:19

    一:

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有