Because they use the character encoding is generally utf-8 encoding, but if the other party's blog using gb2312 encoding, the post will appear garbled (unless the other party before the post-code conversion). It is necessary to do a coded check and
Brief introduction:Ajax is made up of HTML, javascript™ technology, DHTML, and DOM, an excellent way to turn a clumsy web interface into an interactive Ajax application.
For Ajax, one of the core objects is XMLHttpRequest, and all AJAX operations
1, the basic principle of PHP injectionProgrammer's level and experience are also uneven, a large part of the programmer in writing code, the user does not judge the legality of input data, so that the application has a security risk. The user can
Now many PHP programs need to zendoptimizer environment, but Zendoptimizer after PHP5.2 has been supported, then what to do, Zend will not do so, originally PHP5.3 began zendoptimizer formally changed to Zend Guard Loader.
Zend Guard Loader is
Bubble Sort
Basic principle
The adjacent two numbers are compared in turn, the decimals are placed in front, and the large numbers are placed behind. At the end of the first trip, the largest number was put to the end. At the end of the second
PHP tutorials get full URL address bar parameters in a variety of ways:
$_server["Server_port"]//get port
$_server[' Http_host ']//get the domain name or host address
$_server[' server_name ']//what does it mean to get a domain name or a host site
Nginx CacheNginx has two kinds of caching mechanisms: Fastcgi_cache and Proxy_cache
Let's talk about the difference between the two caching mechanisms.Proxy_cacheThe role is to cache the contents of the backend server, which may be anything,
In the development of PHP program, many developers did not notice the difference between $globals[] and global, these two kinds of writing is actually very different, not just the literal above differences, let me look at their specific differences.
For PHP references (that is, variables or functions, objects, etc., preceded by the & symbol), let's look at the following procedure.
Copy CodeThe code is as follows:
$a = 100; Declaring variable A
$b = & $a; Declaring variable B, referring to
Baidu a bit about PHP gets the variable name method is the following function. But I found a bug with it.
/*** Get variable name** @param $string* @return $string** $test = "Helo";* $test 2 = "Helo";* Getvarname ($test 2);*/Function Getvarname (&
Implementation code:
Copy CodeThe code is as follows:
function Addslashes_deep ($value)
{
The most classic recursion in history, one line.
Return Is_array ($value)? Array_map (' Addslashes_deep ', $value): Addslashes ($value);
}
Test data$_post['
Copy CodeThe code is as follows:
Echo ' abc '. Def '; Concatenate strings with dot numbers
Echo ' abc ', ' Def '; Concatenate strings with commas
So here are some examples. To identify the difference between them.
Copy CodeThe code is as
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo can do this, it is a string can be used as a
Some of these PHP concepts are just beginning to be difficult to understand, I have listed them, hoping to help some people, on the way forward less thorns.
1. Variable variables (variable variable)
variable_variables.php
Copy the Code code as
Introduction to the introduction of PHP design Patterns
When you're constantly trying to discover new features from your application, do you find that the solution you're proposing is similar to something you've already implemented in the past? If
Build steps1, install vs2008
2. Install Windows SDK 6.1
3, download PHP 5.2 Source code, can be obtained from here
releases(Do not unzip first)
4, download Bindlib_w32.zip,
Click to download Bindlib_w32.zip5, download Win32build.zip,
Click to
MySQL Time conversion function usage 2007-10-31 15:03dayofweek (date)Returns the day of the Week index (1= Sunday, 2 = Monday, ... 7= Saturday). These index values correspond to the ODBC standard.Mysql> Select DAYOFWEEK (2007-10-31);4
WEEKDAY (date)
If you do not want to let others know that your website uses PHP program to achieve security purposes. You can configure your httpd.conf file as follows.
You can use the following method to achieve the hidden purpose:
1. Hide PHP as a different
In determining whether an index value exists for a PHP array, it is generally used
issetAnd
array_key_existsTwo different methods.
Isset ($a [' key ']) array_key_exists (' key ', $a)
array_key_existsTells you exactly whether a key exists in an
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