Open PHP. ini, first findFile_uploads = on; whether to allow file upload over HTTP. On is enabled by default.
Upload_tmp_dir; upload the file to the place where the temporary file is stored on the server. If it is not specified, the default
Will the PHP script continue to run after the browser is closed?
This problem requires understanding of the "connection processing" mechanism of PHP.In PHP, the system maintains the connection status. There are three possible states:* 0-normal
Required environment:Php 5.3.3
Apache 2.2.7
Mysql 5.5.8
Download related documents:
Click to downloadDecompress the memcached_1.2.5file and execute memcached.exe-d-install
Decompress the php5.3 _ vc6_memcachedll file and copy the php_memcache.dll
Nclude ()The include () statement includes and runs The specified file.
The following documents also apply to require (). These two structures are identical except for how to handle failures. Include () generates a warning and require () causes a
Php session PrincipleWe know that session is a way to maintain user session data on the server side, and the corresponding cookie is to maintain user data on the client side. HTTP is a stateless protocol. After the server responds, it loses contact
First, let's take a look at the key name is string, the difference between the two:
Copy codeThe Code is as follows: $ Arr1 = array ('A' => 'php ');
$ Arr2 = array ('A' => 'java ');
// If the key name is a character with the same key name, the
PHP handles case-sensitive issues in disorder and may occasionally encounter issues when writing code. So here is a summary.However, I do not encourage you to use these rules. We recommend that you always adhere to the "Case sensitivity" and follow
This is because the error display is disabled in php. ini and the error is written as a file. This is the result of human setting. display_errors = on.
However, the error is not displayed. We recommend that you enable it during debugging and disable
PHP supports the concept of variable functions. This means that if a variable name has parentheses, PHP will look for a function with the same name as the value of the variable and try to execute it. Variable functions can be used for some purposes,
The Iterator mode provides an abstraction in a common process: an iteration of a set of objects (or scalar) that are located in an unknown part of an object graph. Iterations have several different execution methods: iteration over an array
Copy codeThe Code is as follows: /*************************************** ***************
* Bit-by-bit low front Algorithm
* @ Param $ x
* @ Return int
*/
Function reverse ($ x)
{
$ Result = 0;
For ($ I = 0; $ I {
$ Result = ($ result $ I )
PHP has a total of 8 data types:
Type name
Type Representation
Value
Bool
Boolean
True, false
Integer
Integer
-2147483647-2147483648
String
String type
The string length depends on the
1.1.1 zval StructureZend uses the zval structure to store the values of PHP variables. The structure is as follows:
Copy codeThe Code is as follows: typedef union _ zvalue_value {
Long lval;/* long value */
Double dval;/* double value */
Struct
However, both iis and apache only compress html static files by default. For PHP files, the module configuration is required. (Dynamic and Static Compression can be enabled in iis7.5 ), therefore, the effect of using php's own functions to reach
We define two PHP files: page01.php and page02.php. We will try to pass the content in page01 to page02 for our continued use.
--------------------------------------------------------------------------------
First:Use the cookie of the client
When developing a PHP system, the membership is often an essential module, and password processing is a problem that must be addressed. The Mcrypt encryption library of PHP requires additional settings, many people directly use the md5 () function
Polymorphism means that the same operation, function, and process can act on multiple types of objects and obtain different results. Different objects receive the same message and produce different results. This phenomenon is called
Example 1 (using php's built-in compression function ):
Copy codeThe Code is as follows: If (Extension_Loaded ('zlib ') Ob_Start ('ob _ gzhandler ');
Header ("Content-type: text/html ");
?>
untitled document
For ($ I = 0; I I Echo 'Hello
I. Return a referenceThe Return Value of the reference is used when you want to use the function to find the variable on which the reference should be bound. Do not use return references to increase performance. The engine is smart enough for
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