fetch pass-by instance code (back-end PHP)

FormData Passes Free Format Data to Backend The first is the js code: let formData=new FormData(); let headres = { method: 'post', credentials: 'include', headers: {}, body: formData } fetch("The address of your backend",headres) .then((respon ...

Added by sgalonska on Fri, 17 Jul 2020 17:48:21 +0300

CentOS 7 PHP7 Enable session extension

Configuration Guide: http://php.net/manual/zh/refs.basic.session.php http://php.net/manual/zh/session.configuration.php Use the command: php -i Find the information for the printout session block session Session Support => enabled Registered save handlers => files user Registered serializer handlers => ph ...

Added by harlequeen on Fri, 10 Jul 2020 18:46:58 +0300

SSRF uses gopher to attack mysql and Intranet

SSRF uses Gopher 0X01 foreword After studying the application of Gopher protocol for one day, I decided to write a summary about the SSRF utilization of Gopher protocol. Reference link: https://blog.csdn.net/qq_41107295/article/details/103026470 0X02 overview SSRF (server side request forgery) se ...

Added by dipenmistry on Tue, 23 Jun 2020 08:03:47 +0300

Hacker attack and defense of station B [network security] - record

cc attack: for applications, such as malicious swipe verification code DDoS attack: for servers, such as a large number of http requests, malicious access with large traffic Note source station B video (Knowledge Area > wild Technology Association)Hacker attack and defense: from entry to access to y ...

Added by FoxhoundX on Sun, 21 Jun 2020 12:11:09 +0300

thinkph6 model event

Model events First, from the manual, we can know that the model supports the following events: Event description event method name after_read after query onAfterRead before_insert before adding onBeforeInsert after_insert after adding onAfterInsert before_update before update after_update onAfterUp ...

Added by JimChuD on Wed, 17 Jun 2020 11:24:49 +0300

Linux - NFS server summary

reference resources http://cn.linux.vbird.org/linux_server/0330nfs.php#What_NFS_0 Introduction to NFS introduce NFS is network Short for file system, the main function is to let different machines and different operating systems share the specified resource files with each other through the network. It can be simply considered as a ...

Added by rhaggert on Wed, 17 Jun 2020 07:47:11 +0300

Reverse proxy and load balancing in Apache 2.4

The content of the article is from the official document: http://httpd.apache.org/docs/2.4/howto/reverse_proxy.html Like nginx, Apache httpd provides reverse proxy and load balance. The following modules need to be enabled in the Apache httpd configuration: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mo ...

Added by vund0 on Sat, 13 Jun 2020 11:05:30 +0300

LAMP builds forum and blog platform

Article catalog What is LAMP Build Forum Build a blog What is LAMP LAMP refers to Linux (operating system) + Apache (HTTP server) + MySQL/MariaDB (database) and PHP (network programming language), which are generally used to build a web application platform. Build Forum 1. First, make sure you ...

Added by V34 on Sat, 13 Jun 2020 08:39:11 +0300

Asynchronous requests in Guzzle

Use Guzzle to make asynchronous requests Guzzle is a PHP HTTP client. It can not only initiate HTTP requests synchronously, but also asynchronously. $client = new Client(); $request = new Request('GET', 'http://www.baidu.com'); $promise = $client->sendAsync($request)->then(function ($response) { echo $response->getBody(); }); // t ...

Added by estan on Thu, 11 Jun 2020 08:41:35 +0300

A summary of using thinkpphp voist multiple loop to output array key value as is

Recently, because of the project, I want to use voist. In this process, there are some small problems, mainly how to output key when voist outputs multiple data circularly. I read a lot of materials on the Internet, but I'm disappointed that most of them are the instructions for pasting and copying the voist label on the Thinkphp manual. In ord ...

Added by JayBlake on Mon, 01 Jun 2020 18:26:55 +0300