PHP Full Stack Learning Notes 32
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
for (expression 1; expression 2; expression 3){
Code snippets to execute
}
<?php
for ($i = 1; $i <= 10; $i++) {
if($i == 4){
break;
}
echo 'After breaking up'.$i.'Years, I forgot all about you<br />';
}
?>
<?php
for($i=0; ...
Posted by heltr on Fri, 17 May 2019 11:22:15 -0700
Haproxy Defense DDOS Configuration
Configuring Haproxy to Prevent DDOS Attacks
As a load balancer, Happroxy often serves as the front-end of the server, providing service entrance to external users. If security-related issues can be handled at the entrance, it will greatly simplify the design of the back-end. In fact, Haproxy is not only an excellent open source load balancer ( ...
Posted by spoons84 on Fri, 17 May 2019 00:41:04 -0700
Deep into Nginx Configuration
Common configuration items
In our work, we deal with Nginx more through its configuration files. It is necessary to understand the respective roles of these configuration items.
First, the content of nginx.conf is usually as follows:
...
... #Core touch block
events { #Event module
...
}
http { # http ...
Posted by Tuck on Wed, 15 May 2019 13:00:33 -0700
macOS Manual Cleaning of Spam Files
There are three places where macOS is most likely to generate spam files: Xcode, iTunes and VMWare virtual machines.
1. Garbage generated by Xcode
On the command line, cd to the ~/Library directory, enter the command:
sudo du -d 1 -h
Seeing that Developer occupies 59 G, cd to Developer directory continues to locate large files with the du com ...
Posted by saunders1989 on Sat, 11 May 2019 10:24:43 -0700
Application of Swoole Task
Catalog
Summary
Code
Summary
extend
Reference Documents
Summary
Swoole asynchronous Task, which mainly implements execution of invoking asynchronous tasks.
Common scenarios: asynchronous payment processing, asynchronous order processing, asynchronous log processing, asynchronous e-ma ...
Posted by zrobin01 on Thu, 09 May 2019 10:30:38 -0700
The latest Internet Micro Services Advanced Architecture Framework JAVA Complete Set of Projects (full 120G+)
1. Basic File Operations
1. Create and open files
Format:
file = open(filename,arguments)
#Parameter description:
#File: Customize, open, or create how the file will appear in the program
#filename: Direct or relative path to write a file, if there is one, open it to read
# When followed by w,w+,a, or a+, create a file an ...
Posted by mmcb on Thu, 09 May 2019 08:08:40 -0700
Mysql Chinese Reference Manual (Extract 5) -- Data Loading, Retrieval and Query of MySQL Operation (3)
Using NULL
Conceptually, NULL is a missing unknown value that is treated differently from other values.
Using IS NULL, IS NOT NULL operators, as follows:
mysql> SELECT 1 IS NULL, 1 IS NOT NULL;
+-----------+---------------+
| 1 IS NULL | 1 IS NOT NULL |
+-----------+---------------+
| 0 | 1 |
+-------- ...
Posted by xiosen on Mon, 06 May 2019 11:45:38 -0700
Summary of Common Usages of Moment.js
Summary of Common Usages of Moment.js
Moment.js is a lightweight JavaScript time library, which facilitates the operation of time in daily development and improves the development efficiency.
In daily development, the following operations are usually performed on time: acquiring time, setting time, formatting time, comparin ...
Posted by RynMan on Mon, 06 May 2019 02:00:42 -0700
Go Socket Operational Notes
concept
The first thing Socket does is translate it into a hole or socket. Two programs on the network exchange data through a two-way communication connection, one end of which is called a socket.The essence of Socket is programming interface, which is an IPC interface. (IPC: Inter-process communication) Unlike other IPC methods, it allows mul ...
Posted by jasonc310771 on Sat, 04 May 2019 07:30:39 -0700
Use AddressSanitizer under Windows to detect memory access violations
Use of AddressSanitizer under Windows
brief introduction
AddressSanitizer's function is roughly a variety of buffer overflow detection, such as what's beyond the bounds of an array, which can be used to avoid some undefined behavior, first used for Unix homework, and then can no longer be separated from it...AddressSanitizer ...
Posted by gabrielserban on Fri, 26 Apr 2019 05:12:36 -0700