linux introduction series 20 -- LNMP architecture practice of Web Services

As the last article in this introductory series, we will demonstrate how to build a LNMP environment to build a personal blog site in the CentOS7 environment. The common ways to build a website are LAMP, LNMP, IIS, Nginx, Tomcat, etc. This paper demonstrates the more popular way to build a dynamic WEB site based on LNMP. As mentioned in "L ...

Added by naturalbeauty7 on Thu, 02 Apr 2020 02:03:03 +0300

Various writing methods of wx.request()

post request, parameter is key value pair format wx.request({ url: 'http://192.168.1.103/yiji/skillList.php', method: 'POST', data:'pageSize=1&pageNum=10', //Parameter is key value pair string header: { //Set the parameter content type to x-www-form-urlencoded 'conten ...

Added by whisher06 on Wed, 01 Apr 2020 13:21:28 +0300

easywechat -- use in thinkPHP5

1. installation Version 1.1 v-4.0 requires PHP version above 7.0 1.2 run the following command in the project directory If composer is not installed, install composer first - > http://docs.phpcomposer.com/00-intro.html Under windows environment, if openssl extension is missing is reported, modify php.ini file and open extension=php_openssl. ...

Added by QuizToon on Tue, 31 Mar 2020 23:33:36 +0300

Vue obtains router dynamically from server

Preparatory work Provide interface Rewrite route Provide interface laravel provides the interface. It's in minutes, isn't it api.php Route::group(['prefix'=>'admin','middleware'=>'format'], function (){ Route::get('routes','Manager\RouterController@getRouter'); }); Then write a getRouter method like RouterController pu ...

Added by Ayon on Tue, 31 Mar 2020 19:29:41 +0300

Practice the real knowledge - Scratch integrated ip agent (take Abu cloud as an example)

I. Preface There is a project that needs to crawl the Securities Association, and the other party has ip shielding. So I need to realize the ip automatic switch in the scratch to complete the crawling task. Before that, I have used the third-party library, namely, scrapy proxys plus the proxy api interface of sesame ip. Maybe the previous code ...

Added by Greaser9780 on Tue, 31 Mar 2020 17:23:54 +0300

Jquay review summary

   1 optional combination of selectors, mixed use <span style="font-size:14px;color:#006600;"></span>   // Multiple selectors are separated by spaces or specified symbols to match the elements represented by the last selector that has a specified relationship with the former $("#uid span"); // Select al ...

Added by ryanlwh on Tue, 31 Mar 2020 16:12:33 +0300

PHP FFI Details - A new way to extend PHP

This article address: https://www.laruence.com/2020/03/11/5475.html Please indicate the source for reprinting With PHP 7.4 comes an extension that I think is very useful: PHP FFI (Foreign Function interface), which refers to a description in a PHP FFI RFC: For PHP, FFI provides a way to write PHP extensions and bindings to C li ...

Added by $SuperString on Mon, 30 Mar 2020 06:00:01 +0300

Details of php pdo object usage: connecting database and exec method

To use pdo, you need to open the pdo extension first. I have opened the pdo extension of mysql here ghostwu@dev:~$ php -m | grep pdo pdo_mysql ghostwu@dev:~$ 1. Connect to the database mysql> show create database shop \G; *************************** 1. row *************************** Database: shop Create Database: CREA ...

Added by jvanv8 on Fri, 27 Mar 2020 17:03:39 +0200

php array function

array An array in php is an ordered mapping, a type that associates values to keys, and an array can accept any number of key-value pairs separated by commas. Introduction to arrays /* * Arrays in php can be divided into: *Index Array: Subscript is a number *Associated Array: Subscript is string *Note: Arrays in php don't really distinguish ...

Added by pyc on Fri, 27 Mar 2020 08:57:14 +0200

Laravel Model Association, association query, preload use instance

Data tables are usually associated with each other, and it is usually easier to use multi table associated query, which is more convenient and simple for more complex model associated query using laravel, Chinese document , take two tables of provinces and cities as an example Preliminary preparation: First, create a PlaceController controller ...

Added by zab329 on Mon, 23 Mar 2020 11:54:51 +0200