Do not turn on the automatic serialization option of php redis extension

php redis extension has the option of automatic serialization. When storing kv data, you can open it with less code, and suddenly find a depressing place in the process of use. The extension does not make type judgment on the value you want to store. Any type of value is automatically serialized, such as the following code $rd = new Redis(); $ ...

Added by badal on Sat, 04 Jan 2020 10:04:25 +0200

[thinkphp5 operation redis series tutorial] pconnect (or popen) connection

1.pconnect /** * Connects to a Redis instance or reuse a connection already established with pconnect/popen. * * The connection will not be closed on close or end of request until the php process ends. * So be patient on to many open FD's (specially on redis server side) when using persistent connection ...

Added by smith.james0 on Thu, 02 Jan 2020 11:10:13 +0200

Reach advanced routing and parameters

  1. Installation depends on the latest version by default npm i react-router react-router-dom --save-dev 2. Import main component object import {BrowserRouter as Router,Route,Link,Redirect} from 'react-router-dom'; 3. The writing structure is inside the component and does not need to be written in the render. The Router ...

Added by philwong on Wed, 01 Jan 2020 12:08:12 +0200

Query result field type in yii2 database

The default return from the yii2 database query is an AR object, where the field type is essentially the same as the database, but if asArray is used to return in an array, the default field type is all string, and if this json_encode is returned to the App end, it will be killed by the engineers of the strongly typed languages Android/IOS, and ...

Added by Eratimus on Mon, 30 Dec 2019 09:49:12 +0200

An article takes you through function expressions, recursion, closures, variables, this objects, module scopes in JavaScript

Author| Jeskson Source|Dada Front End Bistro How functions are defined: The first is a function declaration; the second is a function expression. Grammar: function functionName(arg0, arg1, arg2) { // Function Body } In Firefox, Safari, Chrome, and Opera: This property gives you access to the name specified by this function. console.log(funct ...

Added by Twister1004 on Mon, 30 Dec 2019 03:08:45 +0200

Building PHP Configuration for LMAP Architecture (Final)

[TOC] Article Directory 1. Introduction to PHP 2. Preparations before installation 3. Manual Compilation and Installation of PHP IV. Installation Process of Forum 1. Introduction to PHP PHP, which is used to interpret dynamic Web page files, provides a development and running environment for Web applications. PHP is a widely used open source, ...

Added by katuki on Fri, 27 Dec 2019 22:18:53 +0200

LNMP Environment Setup (PHP 7.4.0)

Catalog Dead work Install wget Install net-tools Install vim Configure Display Line Number Close Firewall Install Nginx Installation Dependency Compile and install Nginx Configuring environment variables Systemd Management Install M ...

Added by terryl on Fri, 27 Dec 2019 04:51:09 +0200

Analysis of self, static and parent keywords in PHP object-oriented programming

This article mainly introduces the use of self, static and parent keywords in PHP object-oriented programming, and analyzes the functions, application scenarios and related use skills of self, static and parent keywords in combination with the form of examples. You can refer to the following examples for your friends, this article describes th ...

Added by unstable_geek on Thu, 26 Dec 2019 10:23:25 +0200

PHPExcel ---- get / import excel file data [simple and practical demo2]

For excel export / save, please refer to another blog post: PHPExcel - save / export excel file data [simple and practical demo] First, you need to have PHPExcel class: Portal Just save the Classes in it. Reference PHPExcel.php in the project First look at the excel data source table you want to obtain: Implementation cod ...

Added by transformationstarts on Wed, 25 Dec 2019 17:10:11 +0200

Getting started with Nginx error page redirection (Nginx installed from yum)

1. Environment: Nginx installed from yum. 2. Scenario: redirect the error prompt page of Nginx. 3. Configuration file / etc/nginx/conf.d/default.conf tip: why is this configuration file? Because include /etc/nginx/conf.d/*.conf is loaded in the nginx.conf file; 4. default.conf source code: server { listen 80; serve ...

Added by southofsomewhere on Tue, 24 Dec 2019 23:04:12 +0200