Through the Nginx http_stub_status_module module provides the status information to monitor, so in the agent side need to configure the Nginx state to obtain the script, and add key information, and then configure the server side of the Nginx
1. Select the source directory
Selected Directory/usr/local/
cd/usr/local/2. Installing the Pcre Librarycd/usr/local/wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.gzTAR-ZXVF pcre2-10.21.tar.gz
CD
The technique is not fine, must have the mistake, also please point out, I will correct.
Copy the Code code as follows:
Header (' content-type:text/html; Charset=utf-8 ');Echo '
';function Var_array ($array){Echo 'Echo '';}function Printr
The syntax for this PHP manual is defined as follows:
for (EXPR1; expr2; expr3)
Statement
Here are some useful variants of the for statement.
1. Infinite loop
The first is a well-known infinite loop (also known as a "dead loop"). Because null
PHP does not have integer division
such as: 2/5=0.4 and not 2/5=0
Although the bottom of PHP is the use of C language implementation, but really pay attention to this pit, especially some of the details of the calculation, remember to remember!
'
The first example of this article for everyone to share the PHP according to the identity card number, automatically obtain the corresponding constellation function, for your reference, the specific content is as follows
= 20) | | ($month = = 2 &&
Code page conversions are not supported for text data types. From: 1252 to: 936.
————————————————————
The problem is due to the design of the target, the original database used:
English (United States) 0x409 Latin1_General 1252
And because of the
See a few symbols about PHP today. One is @, this is added to the front of a variable, to suppress the PHP interpreter error, that is, even if the error is not displayed.
There is also a more important symbol for PHP's range resolution operator (::)
We can also use random numbers to design any program structure that we imagine.
First, let's meet the random number function rand () provided by PHP. The rand () function of PHP returns a random integer, using the following method
Rand (Min,max)
The
Variables in PHP
Variables are used to store values, such as numbers, text strings, or arrays.
Once a variable is set, we can use it repeatedly in the script.
All variables in PHP start with the $ symbol, and the variable names are
It turns out that you need to turn IP into decimal.
Copy the Code code as follows:
$ip = $_server[' remote_addr ');echo ' Your IP: '. $ip. '';$ip _arr = Explode (".", $ip);$ip = 0;foreach ($ip _arr as $i = + $s) {$ip + = $s *pow (256,3-$i);}echo '
Mini AJAX Chatroom by Longbill
http://www.longbill.cn
Longbill All rights reserved
2006-08-16
Demo Address: http://longbill.cn/down/sample/chat.php
Open a file for specific settings
Use the method to upload this program to the server and run it.
The
A variable cannot be passed between the "1" page get,post,session in the latest PHP version, the auto global variable is closed, so the variable to be submitted from the previous page is to use the $_get[' foo '],$_post[' foo '],$_session[' Foo ']
Output the information page about PHP and current instructions
int phpinfo (void)
Returns the current PHP version number
String phpversion (void)
Print out a list of people who contributed to this PHP project
String phpcredits (void)
You can turn
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.