[reprint] C ා prevent SQL injection and filter dangerous character information

However, in java development, C development or PHP development, we need to pay attention to the security of SQL injection attack. In order to ensure that the data submitted by the client will not generate the risk of SQL injection, we need to filter the received data with dangerous characters to prevent the risk of SQL injection attack. Here is ...

Posted on Thu, 05 Dec 2019 16:20:38 -0500 by damonps2003

PHPUnit practice three (building modular test units)

All PHPUnit tests in this series are based on PHPUnit version 6.5.9, Lumen 5.5 framework directory structure The directory under the module conforms to Lumen's module structureFor example: Controllers, Models, Logics, etc. are the structure directories under Lumen module directoryIf you have your own directory peer assignment, such as my Reques ...

Posted on Thu, 05 Dec 2019 08:20:21 -0500 by fesan

Sorting out the values of various bug s on the receiving front end of PHP

Sorting out various situations of PHP receiving front-end value transmission Server code: header('Access-Control-Allow-Origin:*'); var_dump($_POST); exit; Situation 1) Chuan null $.post('http://xxxxx.xx/index.php', { "test": null }, function(data, status) { console.log(data); }); Result: array(1) { ["test"]=> string(0) "" } 2) pa ...

Posted on Thu, 05 Dec 2019 04:11:23 -0500 by h3ktlk

Scrapy case 02 - Tencent Recruitment Information crawling

Catalog 1. target 2. Website structure analysis 3. Write a crawler 3.1. Configure target variables to be crawled 3.2. Write a crawler file, scratch 3.3. Prepare pipeline documents required by yield 3.4. Configuration request header information in setting 4. Final resu ...

Posted on Thu, 05 Dec 2019 02:25:13 -0500 by gabe33

Dry goods, call api to get the list of Zen road requirements, etc

Recently, I have used the open source version of Zen Tao system, version 10.0. In order to get more convenient Zen Tao information, I wrote the script of Zen Tao api call according to the official instructions. Since there are few blogs that can be found on the Internet, I will share my achievements. I hereby declare that the content of this ar ...

Posted on Thu, 05 Dec 2019 01:17:27 -0500 by mkubota

swoole installation to build tcp server and websocket

1. Install swoolewget https://github.com/swoole/swoole-src/archive/v1.9.1-stable.tar.gztar zxvf v1.9.1-stable.tar.gzcd swoole-src-1.9.1-stable/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmakemake install2. Configure php to support swoolevi /usr/local/php/etc/php.iniAdd toextension=swoole.so3. Restart PHP ...

Posted on Wed, 04 Dec 2019 15:55:57 -0500 by purinkle

ThinkPHP+JQuery for asynchronous file upload

Front-end code <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>ThinkPHP+JQuery Asynchronous upload of files</title> </head> <body> <form id="ajax-upload-demo" enctype="multipart/form-data"> <label>Select File:</label> <input type="file" n ...

Posted on Wed, 04 Dec 2019 15:09:13 -0500 by sactown

LNMP schema access log, log cutting, static file not recording and expiration time setting

November 27 mission 12.10 Nginx access log 12.11 Nginx log cutting 12.12 static files do not record logs and expiration times   Nginx access log Modify nginx configuration file [root@localhost vhost]# vim /usr/local/nginx/conf/nginx.conf # Search / log? Format # In nginx, it ends with; as a line, so the following code is a configura ...

Posted on Wed, 04 Dec 2019 09:23:15 -0500 by lelelow

Imitating Weibo to publish the dynamic, php learning notes

I've been learning everything about the front-end. I'm a little interested in php recently. I've studied the php files in the background of the previous project, and I've also watched some videos. I've made a small function to post the dynamic microblog. I'm just getting started. Record the learning process. Welcome to php's guidance and critic ...

Posted on Wed, 04 Dec 2019 07:27:18 -0500 by davidtube

Wechat secondary sharing error, invalid signature

The h5 page based on WeChat public number (using jssdk interface) is shared by user A to user B. Users can not share this page when they share the page again. The problem is that the sharing link received by user B is different from the one opened by user aA user's link is http://test.com/test.html B connection received by user http://test.com ...

Posted on Wed, 04 Dec 2019 04:51:51 -0500 by ferhanz