Toss a friend of the VPS, the installation of a good lnmp and other Web running environment will choose some cache expansion installation to improve the speed of PHP, often introduced by the eaccelerator, memcached, XCache, alternative PHP Cache
$_files: Variable submitted to script via HTTP POST file, similar to old array $http_post_files array (still valid but opposed to use) details can be found in the Post method upload
The $_files array reads as follows:
$_files[the original name of
Code:
Copy Code code as follows:
Eval ("Echo ' Hello World;");
The top code is equivalent to the following code:
echo "Hello World";
Output in the browser: Hello World
Use eval () to note several points:
The string at
PHP recursive function in the use of return when you can not correctly returned to the desired situation, if you do not understand the reasons, it is difficult to find the wrong, the following specific examples to illustrate it:
Copy Code code
There are many ways to verify mailbox addresses. In the browser side, JS mailbox authentication can be detected through regular expressions.
Like what:
Copy Code code as follows:
function Isemail (email) {
return/^ (([a-z]|\d|[! #\$%& '
There is a difference between the pointers in the C language. The pointer in C language stores the reference of the variable's contents in memory in the address variable.
PHP references allow you to use two variables to point to the same content
In Baidu Encyclopedia, the definition of Stdclass is as follows:
Copy Code code as follows:
Stdclass began to be popular in PHP5. And Stdclass is also a reserved class of Zend. Stdclass is a base class for PHP,
Almost all classes
Recently in the project, there is a strange phenomenon, there is a large form with thousands of input, the time to submit, always find the post data incomplete, at the beginning of the suspect is the HTML form name conflict, ruled out.Then, on the
with PHP Ob_start ();
Control your browser cache
The output control function gives you a free rein in the outputs of the data in the script. It's very useful, especially for: when you want to output the file header after the data has been exported.
1, if you can define the method of the class as static, as far as possible to define static, it will increase the speed of nearly 4 times times.2, $row [' ID '] speed is $row[id] 7 times times.3, ECHO is faster than print, and uses Echo's multiple
Code One:A function that generates a random password, which is a random string of lowercase letters and numbers, and can be customized in length. Relatively speaking, this is relatively simple
Copy Code code as follows:
/*
*
1, preparing elements
1 JS file to replace the font
JS Code:
function Com_stewartspeak_replacement () {/* Dynamic Heading Generator by Stewart Rosenberger Http://www.stewartspe Ak.com/headings/this script searches through a Web page for
VLD IntroductionVLD is a php extension of pecl (PHP extension and application repository), and now the latest version is 0.14.0(2016-12-18), which is to display the internal representation of the dump PHP script (opcode) ( Introduction to VLD from
There are a lot of solutions available on the Internet to solve, and now share the following:Win7 64-bit system, apache24,php5.6.6.In addition to the php.ini; Extension=php_curl.dll in front of the ";" removed, the following actions are required,I
Php dom-based library xml format data example, domxml
This document describes the xml format of books implemented by php Based on dom. We will share this with you for your reference. The details are as follows:
'PHP Hacks', 'author' => 'Jack
PHP5.5 install PHPRedis extension and connection test method, php5.5phpredis
This document describes how to install PHPRedis extension and test the connection in PHP5.5. We will share this with you for your reference. The details are as
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