tcp packet combination and subcontracting of swoole

The following two examples are used to understand the problems caused by the characteristics of tcp transmission without data boundary, which leads to the concepts of packet combination and subcontracting proposed in this paper. Use the client and server of swoole here. Example 1: the sender sends multiple pieces of data and the receiver reads ...

Posted by kdoggfunkstah on Sun, 10 Oct 2021 05:08:12 -0700

pflag - better PHP command line options parsing library

PHP toolkit / pflag is a general command line flag (options and parameters) parsing library written in PHP. Github warehouse: php-toolkit/pflag Function description Common command line options and parameter parsersSupports setting value data types (int,string,bool,array), and will automatically format the input valueSupports setting default ...

Posted by BenMo on Sun, 10 Oct 2021 03:45:57 -0700

Nginx profiles and virtual hosts

catalogue 1, Configuration file 1. Access statistics 2. Customer based access control 2, Virtual host 1. Domain name based virtual web host Configuration steps: 2. Port based virtual web host Configuration steps: 3. ip based virtual web host Configuration steps: summary 1, Configuration file 1. Access statistics You can also map ...

Posted by lakshmiyb on Fri, 08 Oct 2021 02:11:56 -0700

"CTF Web replication" BUUCTF-[EIS 2019]EzPOP

Utilization point base64 + filter protocol bypasses death exit Source code <?php error_reporting(0); class A { protected $store; protected $key; protected $expire; public function __construct($store, $key = 'flysystem', $expire = null) { $this->key = $key; $this->store = $store; $this ...

Posted by greenie2600 on Thu, 07 Oct 2021 08:22:52 -0700

GET, POST and REQUEST usage in PHP

GET, POST and REQUEST usage in PHP I$_ GET array GET is the most primitive request method in HTTP. Clicking a hyperlink in a web page or entering a URL in the address bar will send a GET request. In the GET request, the data is sent after the URL, just like this: HTTP://www.phpboke.com/request.php?id=root&password=asdfl . PHP encapsulate ...

Posted by markhard on Tue, 05 Oct 2021 13:17:10 -0700

How to read NIFTI format image (. nii file)

In medical image processing, we often use a NIFTI format image (. nii file). Now let's take a look 1 NIFTI format image 1.1 what is a NIFTI format image Before explaining what is the NIFTI (neuroimaging information technology initiative) format, you must first understand the Analyze format. Each group of data group stored in Analyze form ...

Posted by Tonic-_- on Mon, 04 Oct 2021 14:21:24 -0700

PHP learning part I

PHP program running sequence PHP basic syntax With <? php ...?> Structural frame Fill in the code at Use; End statement echo multiple output print word output Comments / / multiline comments / **/ variable 1. Start with $ 2. No space is allowed in the middle 3. Cannot start with a number Common nomenclature: hello_world,HelloWord, ...

Posted by jeger003 on Sun, 03 Oct 2021 13:44:44 -0700

PHP command execution

PHP command execution Main function Code execution function ${} php complex variable <?php ${phpinfo()}; {KaTeX parse error: Expected 'EOF', got '}' at position 12: {getname()}} ̲ => {s1ye} =>echo "s1ye";, It can be found that the getname function is executed first and "s1ye" is output, and then echo (priori ...

Posted by cptn_future on Sat, 02 Oct 2021 11:46:50 -0700

php learning notes 1

1.1 INTRODUCTION 1. Dynamic website: real-time data update dynamic (foreground, background) database php machine language 1.2 interaction between PHP and web pages Process: the user submits the request, the server receives the request, processes the request, obtains the data, and returns the data 1.web form operation process <form acti ...

Posted by eric_e on Wed, 29 Sep 2021 22:02:50 -0700

LAMP+Apache+mysql+php+DISCUZ

catalogue 1, LAMP introduction and overview 1. LAMP platform overview 2. Build LAMP platform sequence 3. Advantages of compilation and installation 4. Main functions of each component 2, Install Apache (version after httpd 2.4) 1. Close the firewall, subsystem and timing 2. Install and unzip the package last time, and move the accessori ...

Posted by the_ut_tick on Wed, 29 Sep 2021 17:29:51 -0700