Wechat interception detection

background Due to the strict restrictions on wechat, domain names are inadvertently determined to be induced to share. Therefore, the company decided to investigate a set of stable, fast and high accuracy wechat domain name interception detection query interface. The development team tried Google search for a while and found that they rarely sh ...

Posted by EXiT on Thu, 05 Dec 2019 03:59:47 +0100

User role permission control package laravel permission usage notes (larave5 +)

Part I installation This package can be used with Laravel 5.4 or later. If you are using an older version of Laravel, look at the v1 branch of the package. Step 1: install the package through composer:composer require spatie/laravel-permission (optional) in Laravel 5.5, the service provider is automatically registered. In the old version of th ...

Posted by rxero on Thu, 05 Dec 2019 03:03:56 +0100

Partial refresh of HTML page

/. event response refresh: refresh only when there is a request 1. Get HTML elements through JS HTML DOM or jQuery, listen for page events through DOM or jQuery, and get user requests; 2. Submit the user request to the server through Ajax, and the server will return the result after processing, and then Ajax will receive the data; 3. Load the d ...

Posted by meshi on Tue, 03 Dec 2019 11:12:59 +0100

PHP verification user name re registration [novice]

This summary uses the simplest way to verify whether the form submission (user name) exists in the data table through PHP. If it exists, it shows that it has been registered. If it does not exist, it can be registered normally. The detailed code is as follows: Steps omit the establishment of database and data table. The front-end submission pag ...

Posted by maxime on Mon, 02 Dec 2019 18:12:07 +0100

Details of python crawler scratch project (attention, continuous update)

python crawler scratch project (1) Crawling target: Tencent recruitment website (starting url: https://hr.tencent.com/position.php? Keywords = & TID = 0 & start) Crawling content: position; position type; number of recruiters; work location; release time; recruitment detail link; job responsibilities; job requirements Anti creep measure ...

Posted by whatever on Mon, 02 Dec 2019 00:48:51 +0100

Several common magic methods and magic variable analysis in PHP

Original address: http://small.aiweimeng.top/index.php/archives/49.html Let's not talk about it first, but go to the code directly, as follows: 1 class Demo 2 { 3 private $str = 'str'; 4 5 //Auto load on instantiation function 6 public function __construct() 7 { 8 echo "start<br/>"; 9 ...

Posted by Tedglen2 on Sun, 01 Dec 2019 22:31:06 +0100

javascript object-oriented exercise answer

The second chapter 1. If we execute the following statements in the console, what are the results? Why? var a; typeof a; undefined > var s = '1s'; s++; NaN > !!"false"; true > !!undefined; false > typeof -Infinity; number > 10 % "0"; NaN > undefined == null; true > false === ""; false > type ...

Posted by webbyboy on Sun, 01 Dec 2019 17:36:21 +0100

Wechat sharing circle of friends, sharing to friends jssdk

Wechat page sharing function jssdk 1, first of all, there must be a certified public number, subscription number or service number. 2. Bind JS interface security domain name 3. Introduce the js file provided by wechat <script type="text/javascript" src="./js/jquery.min.js" ></script> <script src="http://res.w ...

Posted by Pha on Fri, 29 Nov 2019 19:32:23 +0100

Tencent Cloud Server Centos7.7 Build Lnmp

Query system information cat /etc/redhat-release // Return ## CentOS Linux release 7.7.1908 (Core) yum Mirror Switch to NetEase Download new sources and backup local sources cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo mv CentOS-Base.repo CentOS-Base.repo.bak mv CentOS6-Base-163.repo CentOS-Base.repo yum source u ...

Posted by William on Fri, 29 Nov 2019 09:10:54 +0100

php = = when a form transfers files, a single field receives multiple files

1. Multiple attribute is added to the form field in the form form form to upload multiple files in a single field 2. To pass in information of multiple files in the form of array, you need to set the name property to: example: name = "post []" 3. Verify and save multiple files to disk as arrays 4. In the data receiver, ...

Posted by kaozdragon on Mon, 25 Nov 2019 19:51:19 +0100