The PHP function favorites will add some PHP functions I have used in my work. You can also collect data from the Internet. This article is being updated
1. print the array function
Function _ print ($ array){Echo ("
" ); print_r ( $
Operators this section describes Operators in PHP ).
An operator can generate another value (thus the entire structure becomes an expression) by giving one or more values.
An operator is something that you feed with one or more values (or
PHP and AJAXresponseXML instances AJAX can be used to return database information in XML.
AJAX Database to XML instance (Test Description: This instance function is not implemented)
In the following AJAX example, we will demonstrate how to read
PHP and AJAX voting
In this AJAX instance, we will demonstrate a voting program. The webpage will be able to get the result without reloading.
So far, do you like PHP and AJXA? Yes:No:
This example includes four elements:HTML form JavaScript PHP
QueryPath -- jQuery official homepage http://querypath.org in PHP/
Qp api manual http://api.querypath.org/docs/
The QueryPath (QP) library implements jQuery-like effects in PHP. It can also be used to conveniently process xml html... features are
CentOS + Nginx + PHP + Mysql (3) (conversion) [set Ngnix to provide download of AVI and MP3 files]
# Vi/usr/local/webserver/nginx/conf/mime. typesModify the mime. types fileChange the file type before the download format to
PHP and AJAX request
In the following AJAX example, we will demonstrate how a webpage communicates with an online web server when a user inputs data into a web form.
Enter the First Name in the text box below:
Suggestions:
This example includes
Php + mysql brute-force Library syntax 1. determine version http://www.xxx.xxx/document/advisory/detail.php? Id = 7 and ord (mid (version (), 4.0)> 51 returns normal, meaning it is later than version and supports ounion query
2. to guess the number
I found that many PHP programmers, especially those who have not studied PHP for a long time, do not know the essence of PHP. How did Perl become famous in the business world? Its powerful regular expression. What about PHP? He is a language
The content of the $ _ FILES array uploaded by php is as follows:
$ _ FILES ['myfile'] ['name'] original name of the client file.$ _ FILES ['myfile'] ['type'] indicates the MIME type of the file, which must be supported by the browser, for
Php manual injection http://www.rfidchina.org/products/product.php? Id = 9740
After 'is added to the URL, the returned page does not contain any error information, and content is missing due to a page error,
Then there is and 1 = 1 and 1 = 2,
PHP and MySQL (3) variables and operators
The variables in PHP are the same as those in many other programs. Before initialization, the variable is just the name of a hypothetical container, which can store any number. The following statement
PHP and MySQL (6) can be used to process a long list of things (for example, jokes stored in the database). Below is a simple example: count to 10.
$ Count = 1;While ($ count Echo ("$ count ");$ Count ++;}
I know this
Basic php functions
Gettype: get the type of the variable. Intval: convert a variable to an integer. Doubleval: convert a variable to a double floating point. Empty: determines whether the variable is configured. Is_array: determines
The conclusion of the TCP/IP exam in the last section of the PHP sorting question has ended my sophomore life. In the morning, let's see if our friends are still asleep and don't know what to do. then they began to wander. When I saw a brother sort
PHP and MySQL (5) control statements
In the PHP code example we saw earlier, either only one text statement is output separately to the Web page, or a series of statements are executed in sequence. If you have written programs in other languages,
Php code specification has always been intended to standardize your php code, and finally implement the bird ~
0. UTF-8 is used for encoding.
1. indent: strict indent, 4 spaces (Tab)
2. curly braces: The block below the if statement. curly
Php permanent session principle:
1. enable cookie in the browser. If PHP calls session_start ();
When you access the page for the first time (there is no session information in the request), the server will generate a session id to the "response
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