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

memcached cache building

memcached cache buildingSet up the server and client so that the server can link the clientweb client: 192.168.247.161Server: 192.168.247.160 [root@localhost ~]# hostnamectl set-hostname client [root@localhost ~]# su [root@client ~]# [root@nginx ~]# hostnamectl set-hostname server [root@nginx ~]# su [root@server ~]# Set up serverDeploy libev ...

Added by zuessh on Sun, 22 Mar 2020 07:19:16 +0200

About PHP + jQuery UI drag floating layer to sort and save to database instance

The PHP + jQuery UI implements the drag floating layer sorting layout and saves the dragged floating layer position sorting results to the database instance. First, jQuery library and jquery-ui.min.js are introduced, then a drag loading image is placed, and multiple module drag layers are read from the database. Modules and orderlist are used ...

Added by Cerebral Cow on Wed, 18 Mar 2020 16:29:18 +0200

CentOS7.X install php-7.x.x

My personal website Install php Installation preparation yum install \ vim \ gcc \ gcc-c++ \ wget \ make \ re2c \ libtool \ automake \ autoconf \ curl-devel \ libpng-devel \ libxml2-devel \ libxslt-devel \ openssl-devel \ freetype-devel \ bzip2-devel \ libicu-devel \ libuuid-devel \ libmcrypt-devel \ postgresql-devel \ -y Install php cd /ro ...

Added by Nick Zaccardi on Tue, 17 Mar 2020 16:04:49 +0200

Nginx Common Classic Configuration | Reverse Proxy, HTTPS Redirection, Port Forwarding

Secondary directory mapping At present, there are more scenarios for front-end and back-end project separation, usually one port for front-end and one port for back-end. If the front end is https://example.com/index.html, the interface called is https://example.com:4433 Such a deployment can be cumbersome for small projects, but you can also ...

Added by Akenatehm on Sun, 15 Mar 2020 19:49:40 +0200