Mind Mapping
Click to see a larger image.
Introducing conditional logic can be very complex, so this chapter provides some refactoring techniques that are specifically designed to simplify them.
Full text brief(You can skip the following) Core
Ideas:
1) to generate a long URL MD5 32-bit signature string, divided into 4 segments, 8 bytes per segment;
2) for this four-segment cycle processing, take 8 bytes, he is regarded as 16 binary string and 0X3FFFFFFF (30 bit 1) and operation, that is,
The encoding of the GBK simplified character set is expressed in 1 bytes and 2 bytes at a time. When the high is 0x00~0x7f, it is a byte, and the high position is more than 0x80 with 2 bytes "
Note: The brackets are all 2 binary
When you find
Xhprof is a PHP performance testing tool that is open source for Facebook, and it can also be called the Profile tool, a word that doesn't know how to translate. There are many similarities compared to the xdebug that have been used before.
A string in PHP can be defined in the following 4 ways:
single quotation marks
Double quotes
HEREDOC Syntax Structure
NOWDOC Syntax Structure (Since PHP 5.3.0)
Single quotation marks
The simplest way to define a string is to
Below, take a simple chat room design as an example, introduce the application of Php+mysql in Web development
1. Overall design
1.1 Conception and Planning:
The basic principle of the chat room is to store the spoken data transmitted by each user
Vc6:legacy Visual Studio 6 compiler is compiled with this compiler.
Vc9:visual Studio compiler, is compiled with Microsoft's vs Editor.
Since apache.org only provides VC6 versions, only VC6 can be used when using the original Apache.
You need to get the number of records for a MySQL query that meets the criteria when you need to output a site user registration or if you want to determine if there are duplicate records before inserting the data.
First method: direct statistics
First download the latest version of the VLD extension:
Copy CodeThe code is as follows:
~/public_html/php-5.3.13/ext> wget http://pecl.php.net/get/vld-0.11.2.tgz
~/public_html/php-5.3.13/ext> Tar zxvf vld-0.11.2.tgz
~/public_html/php-5.3.13/ext>
When we use the traditional mysql_connect, mysql_query method to connect query database, if the filter is not strict, there is the risk of SQL injection, resulting in the site is attacked, out of control. Although you can use the
APC Definition: APC is an open and free php opcode cache. Its goal is to provide a free, open and robust framework for caching and optimizing PHP intermediate code.
APC Common functions:
1.apc_clear_cache () Clear APC cache
Using WordPress friends will inevitably need to their own WP for some personality adjustment or to do a set of personal theme for themselves, the general small modification of the direct online adjustment is completely no problem, but if you want to
Array explode (string $separator, string $string [, int $limit])
The function has 3 parameters, the first parameter $separator sets a split character (string). The second parameter, $string, specifies the string to manipulate. The $limit parameter
ASP function Code:
Copy CodeThe code is as follows:
function Checkip (checkstring) ' use regular to determine whether IP is legitimate
Dim Re1
Set Re1=new REGEXP
Re1.pattern= "^[0-9]{1,3}. [0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3}$
A. Internal sorting (directly loaded into memory for sorting): Includes Exchange sort (bubbling and fast method), select Sort, insert sort
B. External sorting (due to large amount of data, need to sort with external storage): Includes merge sort,
Flock
(PHP 4, PHP 5)
flock-Lightweight consultation document lock-up
Description
BOOL Flock (int $handle, int $operation [, int & $wouldblock])
PHP supports a lightweight method of locking all files in a consultative manner (that is, all access
PHP operating mode has 4 minutes:1) CGI Universal Gateway Interface (Common Gateway Interface))
2) fast-cgi resident (long-live) type CGI
3) CLI command line run (Interface)
4) Web module mode (module mode for Web server running like Apache)
1.CGI (
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