Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/50549921
Problem:Open the site management system, found that the picture display is very slow, look at the Nginx front-end agent detected:
[ERROR] 28423#0: Failed
Customer requirements, need to give customers a domain name, and then our big Niuqiang recommend not equipped with a domain name server, so unsafe, is generally external Web server to configure the domain name;
Install Nginx with another favorite
Introduction to PHP
PHP is a server-side scripting language, especially for web development. High efficiency, flexibility and practicality are the characteristics of PHP. PHP was initially abbreviated to the personal Home page, and was later
Constant definition
//常量没有$define(“YOU”,"PHP is the best language");const"PHP is the best language";//判断常量是否存在defined(YOU);
Pre-defined constants
PHP kernel-defined constants, using the appropriate module to open
Redis is typically tested in Windows environments, and official Redis does not give Windows Redis but Microsoft has.
Windows edition download address: https://github.com/MSOpenTech/redis/releases
Download Redis-***.mis directly after installation
Original: Http://tengine.taobao.org/book/chapter_02.html%20ngx
After Nginx startup, the process background contains a master process with multiple worker processes.(Terminal Nginx command interacts with master)
The master process is used to manage
In Mac OS X, it's easy to enable the Apache service by turning on web sharing:
The Setup method is as follows:
Open Web share (Web sharing), System settings Preferences (Preferences), share (sharing), select to
Launch ApacheThere are two ways of
In the thinkphp 3.2.3 version, the following function system has been encapsulated in a total of 46, the purpose of the summary is two:1 understand what's in the thinkphp framework
2 Let's develop this eliminates the need to encapsulate your own
This paper analyzes the object-oriented programming method of PHP. Share to everyone for your reference, as follows:
In the development of ultra-large projects, if the use of process-oriented development, the amount of code is very large, which
The example in this article describes the method of PHP floating-point comparison size. Share to everyone for your reference, as follows:
';//echo $c. '';//output will be displayed as 0.55 actual value is smaller than he//so direct and 0.55
The anonymous function is also called a closure function (closures allows you to create a function that is not specified, most often as the value of a callback function parameter.
The closure function does not have a function name, and the defined
Isset (): Returns true only if null and undefined
Empty (): "", 0, "0", NULL, FALSE, Array (), Undefined, all return True
Is_null (): Only null is determined, no report warning is defined
'). addclass (' pre-numbering '). Hide (); $ (this).
The functions used are:
Isset () Determines whether a variable is defined
ChDir () changes the current directory to the specified directory.
Opendir () to open the directory.
Readdir () reads the directory.
GETCWD (). Gets the current directory.
It
1. Install all kinds of plug-ins first, the first is the command line tool, after opening the terminal, enter Xcode-select–install, agree to install after. The second one is homebrew, terminal input RUBY-E "$
1.Minimize HTTP requests reduces HTTP requests
images, CSS, script, Flash, and so on all increase the number of HTTP requests, reducing the number of these elements to reduce response time. A number of JS, CSS in the possible case of writing into a
1. The single quotation marks surrounding $PSWD1 and $pswd2 cannot be deleted, otherwise data cannot be inserted into MySQL.
2.Linux: The line break in the file is "\ n"; Windows: the newline character in the file is "\ r \ n";
Example: File-
Because the Limit_req traffic limit is set in Nginx configuration, many requests return a 503 error code, in the condition of current limit, in order to improve the user experience, want to return normal code 200, and return the operation frequently
I am very happy to start the school tomorrow!
Yes, I want to go to school soon!
Today is the last day of the Chinese New Year holiday, as in previous years of summer and winter vacation, homework will end the last day ...
Now, I'm 32 years old.
And
JS does not have permission to read local files, so cannot upload files but
There are several ways
1 iframe Camouflage Jquery-uploaded-file
2 swf Plugin (this does not speak, is a separate software
3 HTML5
IFRAME simulation Ajax File Upload effect1
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