Write your own PHP crawling agent IP project step by step (2)

In this chapter, we officially launch our crawler project. First of all, we need to know which website can get free agent IP. At present, there are popular websites such as Xisi agent and fast agent. Here we take Xisi agent as an example. Official website of West stab agent: http://www.xicidaili.com Here are free IP addresses and port ...

Posted by tomhilton on Mon, 30 Dec 2019 16:18:04 +0100

Using docker compose to quickly build php7+nginx+mysql5.7+redis environment in centos7

1. Install docker and docker compose centos7 installs docker and docker compose 2. Docker compose common commands # Build the container under the folder containing docker-compose.yml # If you use the Dockerfile to modify the Dockerfile, execute the following again to apply the modification docker-compose up -d # Stop all ...

Posted by goosez22 on Sun, 29 Dec 2019 18:57:17 +0100

Linux Mint 19 installs PHP7.3 and configures with nginx

1, Update Linux Mint 19 system Make sure that you are running the latest version of Linux Mint. If there are important programs running and you do not want to upgrade them, you can only update the package list and run the following command: sudo apt update sudo apt upgrade If a newer version of Kernel is installed, it is recommended to rest ...

Posted by mrdance on Fri, 27 Dec 2019 09:07:42 +0100

Analysis of Python unit test

Significance of testing For a specific problem, through analysis and design, people finally write a program in programming language. If it passes the check of language interpreter (compiler) and can run, the next step is to try to make sure that it meets our requirements. This article is about how to confirm whether the program meets the requir ...

Posted by Tagette on Wed, 25 Dec 2019 23:18:45 +0100

js encrypted Sina Weibo login

1. url:  https://weibo.com/ 2. target: Login   3. Analysis. Due to the need to fill in the verification code, this article only analyzes the part of cracking the user name and password encryption, without verification code identification. 3.1 according to the old rule, F12, enter an account password and click login to see what requests have be ...

Posted by phpnewbie112 on Wed, 25 Dec 2019 11:21:21 +0100

WordPress 5.3.2 manual upgrade

Shortly after WordPress 5.3.1 was released, we received some relatively serious problem feedback, so WordPress officially released WordPress 5.3.2 in a short time, mainly to fix the following five problems: Date / time: make sure get feed build date() correctly processes revision article objects with invalid dates. Upload: fixed the problem o ...

Posted by ariliquin on Tue, 24 Dec 2019 13:12:08 +0100

How to use PHP to calculate the difference between two dates?

I have two date formats: Start Date: 2007-03-24 End Date: 2009-06-26 Now, I need to find the difference between the two in the following form: 2 years, 3 months and 2 days How to do this in PHP? #1st floor Some time ago, I wrote the format ﹣ date function because it gives you many options on how to choose a date: function f ...

Posted by mattsinclair on Mon, 23 Dec 2019 13:11:46 +0100

Acquisition and debugging of Ptcms under php7.2.10

1. Error report of chapter and catalog after re collection October 3, 2018 Warning: Invalid argument supplied for foreach() in /usr/share/wwwphp/ptcms/application/novelsearch/model/novelsearch_chapter.php on line 326 vim /usr/share/wwwphp/ptcms/application/novelsearch/model/novelsearch_chapter.php public function getolist($zy ...

Posted by jrdiller on Fri, 20 Dec 2019 19:35:14 +0100

HDU 5988 coding competition

http://acm.hdu.edu.cn/showproblem.php?pid=5988 Title: Here are n areas, M roads. Next N lines, each line bi,si, each area has bi individuals, si food. Food is immovable. People need to find food along the road, one by one. Next, line M, vi,ui,ci,pi represent that there is a path between vi and ui. You can walk ci individ ...

Posted by unclebob on Fri, 20 Dec 2019 19:24:07 +0100

php -- observer mode

Observer mode When an object or event changes, other object instances or events need to be changed accordingly or one to many relationships with corresponding actions can be applied. For example: after the order status changes (payment is completed), a series of corresponding operations such as SMS notification and public number push are requ ...

Posted by kester on Tue, 17 Dec 2019 20:31:15 +0100