Python Web Crawler-1

Initial knowledge of web crawlers How to view module functionality and how to install modules What is a web crawler? What can a web crawler do? #How to view module functionality and install modules ''' How to understand the function of a module when new to it.The main methods are: 1.help() --Enter t ...

Posted on Tue, 17 Mar 2020 13:51:35 -0400 by aarons123

One time 502 error resolution process

At noon, I received the feedback, and 502 error was reported in the background. When I entered the server, I saw that the nginx and PHP FPM processes were in progress. Looking at the load, it is found that the CPU rises to 99% intermittently. It is found that the script of PHP artican is executing. Enter the / etc/cront file to delete the sched ...

Posted on Tue, 17 Mar 2020 11:57:37 -0400 by Nimbuz

Code audit: xss vulnerability recurrence of bluecms user registration

Code audit: xss vulnerability recurrence of bluecms user registration bluecms Code audit Loophole reappearance bluecms BlueCMS is a solution focusing on the construction of local portal website. It is based on PHP+MySQL technology development, and all source codes are open. The duplicate version ...

Posted on Mon, 16 Mar 2020 05:42:54 -0400 by ajna

[delphi] WeChat official account controls WeChat payment development

[delphi] WeChat official account control development (three) WeChat payment 1, Wechat payment method implemented by control 2, Development points of wechat payment Delphi 1. How to realize SSL bidirectional authentication in wechat payment? 2. How to ensure that the signature is correct? 3. Because ...

Posted on Mon, 16 Mar 2020 05:14:50 -0400 by madolia

CentOS7 Docker runs multiversion php environment with host nginx

PHP Docker Mirror Hosts are usually Nginx+PHP-FPM+Mysql configured by direct yum. Due to business needs, php7 in the original environment is not compatible with legacy old php5.x programs, but you want to run on the same host again. The problem is: Existing direct installations of Nginx, php7-fpm, mysql Program A php 5.6 requires fpm for writi ...

Posted on Sun, 15 Mar 2020 13:34:37 -0400 by Cleanselol

Centos7 installation configuration Apache (httpd) + php+mysql+phpMyAdmin

1, Install mysql Execute command:  wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm   rpm -ivh mysql-community-release-el7-5.noarch.rpm Execute Yum - y install MySQL MySQL server MySQL devel, and the installation is successful. Use the command again and get the following inf ...

Posted on Sun, 15 Mar 2020 05:42:47 -0400 by powah

Download files from URL to server

Well, it looks simple, it does. All you need to do to download the file to the server is: file_put_contents("Tmpfile.zip", file_get_contents("http://someurl/file.zip")); There is only one problem. What if the file is large, such as 100mb? You will then run out of memory and cannot download the file. What I want is a way to write files ...

Posted on Sat, 14 Mar 2020 11:09:07 -0400 by mmitdnn

Upload and download ITMS service protocol of ipa file in APP publishing system

Project requirements: internal test and distribution of APP, upload and download of ipa file of publishing system, use ITMS service protocol and jump and download in safari web page It is divided into download page (dl.html), text.plist file and test.ipa file address . ipa file upload to server download address Generate plist file xml format t ...

Posted on Fri, 13 Mar 2020 10:57:06 -0400 by cliffdodger

Detailed steps Ubuntu 16.4.6 Server installation php7.2 + mysql5.6 + PHP FPM + redis to the custom directory

The installation environment is: php-7.2.24.tar.bz2  pcre-8.42.tar.bz2 openssl-1.0.2u.tar.gz  nginx-1.16.1.tar.gz  mysql-5.6.44.tar.gz  freetype-2.10.0.tar.bz2  The environment is installed in the specified directory without disturbing other environments. The newly installed ubuntu system, ssh for shell management; sudo apt-get install ...

Posted on Fri, 13 Mar 2020 06:23:00 -0400 by JD-AM

Using PDO to connect database in php

Use PDO (PDO is PHP Data Object) to connect to the database. PDO provides a data access abstraction layer, which means that no matter which database is used, the same functions (Methods) can be used to query and obtain data. Single template: test.php file <?php // PDO connection database, single temp ...

Posted on Thu, 12 Mar 2020 05:00:43 -0400 by deepakagrawal1982