CentOS 7 compiling and installing lnmp environment (Chapter 1 of nginx)

1: Nginx installation configuration 1. Install compilation tools and library files yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel 2. First install PCRE PCRE is used to enable Nginx to support Rewrite. Download the PCRE installation package at: http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz E ...

Posted by shiranwas on Mon, 27 Dec 2021 21:24:04 +0100

Huile optimization system development source code sharing

As a programmer developing software, in order to develop the system, we must first sort out the product requirements, and the product function analysis first. From the perspective of business model, a good software system must comply with the product design concept, and the product flow should be carried out by the user's self driving, interest ...

Posted by We Must Design on Sun, 26 Dec 2021 07:55:34 +0100

hyperf FAQ summary (longer term)

Environment php8 0 hyperf2. 2 swoole4. five 1. use Hyperf\Di\Annotation\Inject must be introduced to instantiate use class with annotation; 2. To achieve the effect of laravel thinkphp using cache, you need to define your own class <?php namespace App\Library; use Hyperf\Utils\ApplicationContext; use Psr\SimpleCache\CacheInterface; clas ...

Posted by Zephyr_Pure on Sat, 25 Dec 2021 12:37:24 +0100

Multiline content exceeds Show the ultimate solution

Recently, I encountered a seemingly simple problem, but it is not easy to write. For multiline text, beyond Display. It can be implemented through css, but limited by browser compatibility, it sometimes needs to rely on JS. Through JS implementation, we need to consider the text size. The byte lengths corresponding to Chinese and English, numer ...

Posted by kessels1234 on Fri, 24 Dec 2021 09:50:46 +0100

ThinkPHP5 remote code execution

Vulnerability summary The flaw lies in that the bottom layer of ThinkPHP does not check the validity of the controller name well, resulting in that the user can call any method of any class without opening the forced routing, which eventually leads to a remote code execution vulnerabilityVulnerability impact version: 5.0.7<=ThinkPHP5 ...

Posted by scarabee on Thu, 23 Dec 2021 10:48:12 +0100

Learn the DS data structure extension in PHP together

In the previous articles on SPL, we have learned some data structure related data structure objects in SPL, which are very powerful and easy to use. The most important thing is that SPL has been integrated into the PHP source code, and we don't need to install other extensions separately. However, the content of the DataStruct extension library ...

Posted by inaba on Thu, 23 Dec 2021 09:25:31 +0100

ThinkPHP5.0.x deserialization

Vulnerability environment Vulnerability test environment: PHP5 6+ThinkPHP5. zero point two fourVulnerability test code: application / index / controller / index php <?php namespace app\index\controller; class Index { public function index() { $Gyan = unserialize($_GET['d1no']); var_dump($Gyan); return '&lt ...

Posted by urb on Tue, 21 Dec 2021 10:28:30 +0100

Topic development tutorial of ModStartCMS universal station building system

Theme development tutorialAll third parties in ModStart are collectively referred to as modules. The template topic is also a module, starting with CmsTheme, such as CmsThemeBlue, CmsThemeGreen, etc.Create topic moduleuse Module development assistant Can quickly help you create a template theme module.Through system management → module dev ...

Posted by narked on Mon, 20 Dec 2021 23:14:45 +0100

Four isolation types of MYSQL transactions and source code interpretation and practical application in PHP framework Yii2

There are no weak people in life, only those who are unwilling to work hard. 1, What is a transaction Transaction is the basic unit of concurrency control. The so-called transaction is a sequence of operations. These operations are either executed or not executed. It is an inseparable work unit. Transaction is the unit for maintaining ...

Posted by ankrah on Sun, 19 Dec 2021 14:17:25 +0100

[snowflake algorithm] PHP generates snowflake algorithm and tests and uses it [original]

summary At 12.09, there was a problem in the production environment. The specific reason is that there are two asynchronous tasks executing simultaneously on the line. These two asynchronous tasks generate tens of thousands of data and then write the table. The table's primary key ID is generated by snowflake algorithm. Specifically, snowflake ...

Posted by mickd on Sun, 19 Dec 2021 01:32:18 +0100