TP6 configuration read / write separation

Read write separation: Before we get to the point, let's get to know the separation of reading and writing What is read write separation? Read write separation is to let the main database process transactional queries and the slave database process select queries. Database replication is used to synchronize the data changes caused by trans ...

Posted on Sun, 07 Nov 2021 18:37:51 -0500 by mudkicker

Database operation in TP6

Database operation in TP6 To use the Db class, you must use the facade mode (think\facade\Db) call use think\facade\Db; 1, Database connection configuration The configuration file is located in config/database.php Or the. env file in the root directory of the development environment APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai ...

Posted on Thu, 04 Nov 2021 05:17:13 -0400 by karldesign

ThinkPHP5 RCE vulnerability code audit

preface thinkphp Download Vulnerability impact version: 5.0.0<=ThinkPHP5<=5.0.23 ,5.1.0<=ThinkPHP<=5.1.30 RCE caused by not enabling forced routing build In depth analysis of ThinkPHP 5.1 framework combined with RCE vulnerabilities thinkphp-5.1.29 tp version: 5.1.29 php version: 7.2.10 (must be above 7) Test: http://www.yn8 ...

Posted on Tue, 12 Oct 2021 14:43:31 -0400 by mikeyinsane