find the source root of the installation nginx, if notDownload
the newSource
http://nginx.org
Tar xvzf nginx-1.3.2.tar.gz
View Ngixn version Extreme compilation parameters
/usr/local/nginx/sbin/nginx-v
Enter Nginx Source Directory
CD nginx-1.3.2
The
PHP drawing function generates image verification code
Set some important CAPTCHA constantsDefine' Captcha_numchars ',6);// number of characters in Pass-phraseDefine' Captcha_width ', -);//width of imageDefine' Captcha_height ', -);//height of
This chapter explains the optimization of the PHP engine.
1.php cache acceleration, please refer to the previous article.
2. Use TMPFS as cache accelerator file directory
3.php.ini parameter Tuning
3.1 Open PHP security mode
Method: Safe_mode=on
3.2
The use of Nginx alias and the difference from root
Http://nginx.org/en/docs/http/ngx_http_core_module.html#aliasHttp://nginx.org/en/docs/http/ngx_http_core_module.html#root
Previously only knew the root usage in Nginx's location block,
PHP is a built-in standard Class (Stdclass)
$obj = new stdclass();echo'当使用类型转换时,就是使用了标准类$arr = array('a'=>1);var_dump((object)$arr);').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($
Objects can be traversed using foreach, only traversing properties and accessing the range of
classbee{public$a = 1; protected$b = 2; private$c = 3;}$obj = new bee();foreach($objas$key => $val){ echo$key.'-'.$val;}
').
This is a simple jquery plugin that allows the page target element to "Fixed" at the top of the browser window, even if the page is scrolling, the target element can still appear in the set position. This plugin can be used on multiple pages of the
Markdown
Markdown is a markup language that can be written using an ordinary text editor, which can have a certain format for normal text content with simple markup syntax.
Markdown has a series of derivative versions that extend the
The relationship between Mime-type and Content-type:
When the Web server receives a static resource file request, the corresponding MIME type is found in the server's MIME configuration file according to the suffix name of the requested file, and
From the PHP7 out, wamp3.0 version is also added PHP7 and Apache version, but after installation, configuration vhost found, open the project address prompt 404. But the path is right.
Later the test directory below wrote a index.php or index.html
Technology Frontier + Career Planning brothers and you 2016
February 19, 2016, boss directly hired to publicly claim that the App Store developer account has been unheard of malicious attacks, the invasion of accusations directed at the competitor
$binary_remote_addr z>10m rate=10r/m;server { location /api/signin { limit_req z burst=5 nodelay; }}
Reference
Nginx limits the number of accesses to an IP at the same time period
Ngx_http_limt_req_module
'). addclass ('
sudo apt-get update source
sudo apt-get install Nginx
Enter http://127.0.0.1 in the browser
Common basic commands
1, sudo service nginx stop off Nginx
2, sudo service nginx start open Nginx
3, sudo service nginx restart restart Nginx
In fact
PHP support for the database is not good, the most important point is that there is not enough abstraction, the access interface is not unified.
Why
PHP has a separate module, a set of independent functions for each database. This structure
The class name is typically represented by italic, and when using an abstract class, the next line is marked with {abstract} using the class name, and is used above the interface name when using the interface
.
Use properties:
Under Apache you only need to turn on rewriting and add rewrite profiles at the site root.
In Nginx, the principle is similar, requiring access to the root path conditionally URL rewriting:
server { listen80; server_name
First, Nginx's introduction
Nginx is a Web server that can reverse proxy Http,https,smtp,pop3,imap protocol links, as well as a load balancer and HTTP cache. What is a reverse proxy? A reverse proxy is actually a proxy server that is responsible for
Object down Pass Property
When an object invokes an instance method and then statically invokes another class's method, the object in the source method is obtained in the method that is called statically (this)
classbee{public$a = 1;
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service