This article is used as a work record, perhaps some people will ask why not use YII model to operate DB, the reason is very simple, yii model is a lot of convenience, but will execute redundant SQL, open Yii execution log will be found. So for
This article refers to "high-performance PHP development" to make the next record
PHP must perform the 5 steps required, whether from the command line or from a WEB server.
The Zend engine must read the file from the file system, scan its
Experiment:
Type:range The scope index is used here
key_len:12/3=4 Column
The index C1,C2,C3,C4 is used. Parsing: Because order by C3 is ordered, C3,C4 also uses the index
Using the C1,c2,c3,order by order, you can use the index.
Index C1
When accessing a member variable or method in a PHP class, if the referenced variable or method is declared as const (defining a constant) or static (declaring static), then the operator must be used::, conversely, if the referenced variable or
Because Nginx installation relies on other libraries, it is necessary to install the dependent libraries first. Here are the concrete steps
Http://nginx.org/download/nginx-1.2.8.tar.gz1. Installing the Pcre Library
cd/usr/local/
wget
Watch US Open
163
a piece of news, see the following corresponding header information, see the following response header information, note that
Content-length
At the same time, we right-click to save the source code, save the file size
Thinking:
Whether you do the Web backend or app backend, or SOA service, long connection is a good choice, on the one hand to save the resource consumption of establishing a connection each time, on the other hand, can make the message timely response,
$arr = Array (' a ' = ' = ' Beijing '); Echo Json_encode ($arr);
The above code executes after output:
{"A": "\u5317\u4eac"}
PHP Bottom has done Unicode processing, if it is not intuitive enough, you can use the UrlEncode and UrlDecode method to
In This case, the software is php-5.4.28-win32-vc9-x86.zip,httpd-2.2.21-win32-x86-no_ Ssl.msi,mysql-5.5.20-win32.msi.
1, to the PHP installation directory found php.ini, if not, find php.ini-development copy paste re-save as php.ini. Locate the
The order format is as follows:
Rewrite rge replement flagRewrite regular expression replaces the target flag flagThe flag tag can be in several formats:Last-basically use this flag to indicate the completion of the match.Break-Abort Rewirte, do
Curl Expect:100-continue
When using the Curl post data, if the post data is greater than 1024 bytes , curl does not directly initiate the POST request. But it will be in two steps.
1. Send a request with a expect:100-continuein the header that
Attention:
1.mysql statement capitalization of uppercase, remember that each node to wrap, so that it will be clearer to display the SQL statement, in case the error occurs
$sql = "Select M.id, m.nav_name,
A question to be discussed in the group today, record it.
The origin of the problem isVar_dump (MD5 (' 240610708 ') = = MD5 (' Qnkcdzo ')); TrueA string of two md5, compared with the comparison operator (= =), is actually equal.Output a value of
First download the PHP installation files, we use the source code compiled installation PHP5.4.36, to the PHP official website to download PHP installation files.
Next, the PHP source code is compiled and installed, after entering the source
Insert sort (Insertion sort): Inserts a record to be sorted each time, pressing its keyword size into the appropriate location in the previously sorted sub-file until all records are inserted.
Insert sort (one-dimensional array) function
Last night, our boss asked me to get the form of automatic verification function, sorrow for a long day borrowed a lot of knowledge of the official website, just out, eh, to share my own results!
Thinkphp in the model base class for us to define
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