Regular expressions are cumbersome, but powerful, learned applications will give you an absolute sense of accomplishment in addition to improving efficiency. It is not a problem to master regular expressions, as long as you read them carefully, add
Introduction and Article overview
The 11th article gives the unified version of the symbolic expression (emoji expression) code table, and describes how to send emoji expression in the public account development mode, but also at the end of the
PHP is an efficient network programming language, because it has the advantages of flexible writing, fast running, and quickly become the preferred language for Web programmers. So how do you become a good PHP developer?
To become a PHP programmer
Linux under Memcache server-side installation
Server side is mainly installed Memcache server side, the current version is memcached-1.3.0.
Download: http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz
In addition, Memcache used the libevent
An example of how to improve the performance of PHP program and load test code, the need for friends can see how to improve the performance of their programs oh.
Calculate the time of executionThe following simple method can be used to calculate the
PHP operators 1. Arithmetic Operators
The PHP arithmetic operators have + (plus),-(minus), * (multiply),/(except),% (remainder).
PHP operator 2. Assignment operators
The PHP assignment operator has + = (assigns the left-hand value to the left),-=
Usually our solution is by the art design page after the delivery of programmers to develop, and then deliver the art to improve the page, back and forth several times, if you encounter the programmer of the HTML is not familiar with the two sides
Send a 404 status code to the browserHeader ("http/1.1 404 Not Found");OrHeader ("http/1.1 404″");
Permanent redirectionHeader ("location:http://weizhifeng.net/");//default is 301 JumpTemporary redirectionHeader ("http/1.1 302 Found");Header
When we want to add a multilevel catalog to our website, we can use the
PHP function mkdir parameters and descriptions
Path is required. Specifies the name of the directory to create.Mode required. Set permissions. The default is 0777.Recursive
PHP.ini or Php3.ini is the configuration file that PHP reads at startup. The file's storage path is/usr/local/lib/. In PHP version 3.x configuration file is Php3.ini, and in PHP 4.x version changed to PHP.ini. If PHP is installed as a server module,
First make sure the lamp is configured successfully.
Environment: Opensuse12.2 LAMP
Today is the php file upload module to upload images and PDF documents as an example.
The steps are as follows:
Modify PHP.ini
Linux php.ini is placed under the/etc/
Mktime (HOUR,MINUTE,SECOND,MONTH,DAY,YEAR,IS_DST) This is mktime syntax, at a glance should not be difficult to write a timestamp code!
The following code is the online most people give the time stamp reality, this one can only say that a look at
in PHP, "|" is a PHP bitwise operator, "| |" As a logical operator
Bit operator Code:
$a = 0;
$b = 0;
if ($a =3 | $b =3) {
$a + +;
$b + +;
}
echo $a. ', '. $b; Output
?>
Compare the code with the following code for the logical operator:
$a = 0;
$b
The difference between 1.include () and require () (similarly distinguishable include_once () and require_once ()) include (), the Require () statement contains and runs the specified file. These two structures are exactly the same in addition to
a mock introduction
When we do unit tests on Class A, the class A May be dependent on class B, in order to reduce dependency and facilitate the test of class A methods, we can simulate a class B to simply specify the return value of each method
Phpmailer is also a powerful mail-enabled class
Main features of Phpmailer:
Digital signatures that support message S/MIME encryption
Support mail multiple TOs, CCs, BCCs and Reply-tos
Can work on any server platform, so don't worry about the win
Previous paragraph: http://www.BkJia.com/kf/201110/109143.html
1. PHP can read random strings
This code creates a readable string that is closer to the word in the dictionary, and is practical and has password validation capabilities.
/***********
PHP AutoLoad Mechanism detailed
(1) AutoLoad mechanism overview
When developing a system using the PHP OO model, it is often customary to store the implementation of each class in a separate file, which makes it easy to reuse the classes and
Users often need to restrict access to certain important files or information when they design and maintain a site. In general, we can adopt the HTTP protocol-based user authentication mechanism built into the Web server. When a visitor browses a
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