In Ubuntu 12.04 LTS, use
sudo apt-get install PHP5-FPM
The PHP version installed is PHP5.3, if you want to use the YII2 or laravel framework, the PHP version is at least 5.4+, so upgrade.
Upgrade steps
Initialize the operation:
sudo apt-get
The article has three commonly used functions, respectively, is to determine whether it is a legitimate user name, to determine whether it is a legitimate user password, determine whether it is a legitimate telephone number, these three is the
In order for the client user to be able to upload the file, we must provide a form in the user interface to submit a request to upload the file. Since the uploaded file is a special kind of data, different from other post data, we must set a special
First, Introduction and installation
Memcached is a high-performance distributed memory object caching system that is often used to reduce database load pressure to improve the responsiveness of dynamic Web applications.
This extension uses the APIs
Character class (square brackets)
The opening parenthesis begins with a description of the character class and ends with square brackets. A separate right parenthesis does not have a special meaning. If a right parenthesis is required as a member of
Instanceof is used to determine whether a PHP variable belongs to an instance of a class class:
Example #1 use instanceof for classes
The above routines will output:
BOOL (TRUE)BOOL (FALSE)Instanceof can also be used to determine whether a
A variable member of a class is called a "property", or "field", "characteristic", which is known collectively as "Properties" in this document. A property declaration consists of the keyword public,protected or private, followed by a common
Concept
Use the prototype instance to specify the kind of object to create and create a new object by copying the prototypes.
Prototype prototype mode is a creation design pattern that allows an object to create another customizable object without
PHP Data type (it is a weakly typed language)
Integer, floating-point, Boolean, String, array, object, NULL type, resource-type
Scalar type: integer, Float, Boolean, and String type! The so-called scalar types, in essence, can only store the type
To learn the Linux system, beginners must do four things.
In general, most people do not have a lot of access to Linux, and the development of Linux platform is ignorant. But now the trend is more and more shows: whether as a good software
Phpize is used to extend the PHP extension module, through the phpize can build PHP plug-in module, the following describes a method of its use, the need for friends can refer to the next
When installing (fastcgi mode), there are often such
Unix time stamp
Date format a local time and date
Time () returns the current UNIX timestamp
Microtime returns the current UNIX timestamp and number of microseconds
LocalTime Get local time
Date_default_timezone_get (time zone) gets the
For
(PHP 4, PHP 5)
The For loop is the most complex loop structure in PHP. Its behavior is similar to the C language. The syntax for the For loop is:
for (EXPR1; expr2; expr3) statement
the first expression (EXPR1) is evaluated unconditionally
The BZIP2 function is used to transparently read and write bzip2 (. bz2) Compressed files.
This module uses the functions in the»BZIP2 Library of Julian Seward. This module requires BZIP2/LIBBZIP2 version >= 1.0.x.
PHP BZIP2 support is not turned
In order for the different view to be displayed in the same layout, we can write the layout template file and save it as layout.phtml name, and specify the location of the file in index.php.
Require_once ' zend/layout.php ';
ZEND_LAYOUT::STARTMVC
PDO offers three different error-handling modes to suit different styles of application development:
Pdo::errmode_silent This is the default mode. PDO will simply set the error code and use the Pdo::errorcode () and Pdo::errorinfo () methods to
The scope of a variable is the context in which it is defined (that is, its effective scope). Most PHP variables have a single range. This separate scope span also contains the files introduced by include and require. For example:
PHP code
1, install memcached Service and PHP extension
Apt-get Install memcached php5-memcached php5-memcache
2. Check if the memcached service is installed.
PS aux | grep memcached
You can see that the memcached is automatically started after
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