Copy Code code as follows:
/*
* Created on 2007-6-8
* Programmer:alan, Msn-haowubai@hotmail.com
* Php100.com Develop a project Php-mysql-apache
* Window-preferences-phpeclipse-php-code Templates
*/
To avoid errors caused by duplicate
Copy Code code as follows:
?
Very useful PHP database class, three or four code to handle a table operation, no matter how complex the table field.
Such a large number of times used in large-scale Web site program development, the effect is
Definitions and usage
The STRTR () function converts a specific character in a string.
Grammar
STRTR (string,from,to) or
STRTR (string,array) parameter description
String1 required. Specify the string to convert.
From required (unless an array is
Today do PHP online manual mirror When you see this method, Haha, have not noticed before, so that the handbook is the best teacher
-------------------------------------------------------------------------------------
If you don't want to let people
We created two files on Linux with Touch php_get.html php_get.php.
The code for the php_get.html file is as follows:
Super global variable $_get to receive the submitted data and then return the information
Submit data using Get
The Set_include_path () function can dynamically change PHP's include_path parameters in a PHP program, which is a string, and multiple different directories can be concatenated together as a parameter--separate directories using a directory split
PHP for directory creation, there is a special function mkdir (): Success, return True, failed, return false
The function mkdir has four parameters:
Path: The name of the directory to create
Mode: Permissions. Default is 0777 (maximum permissions)
At the outset, I think a Web site registration and login to these two functions is very magical, and then their own research to find the truth is very simple, then see how to achieve it ....
I've built a couple of files on my computer:
login.html (
Let's take a look at the inverted quotes to successfully execute the named code fragment. The code is as follows:
Copy Code code as follows:
' Ls-al ';
' Ls-al ';
echo "SSS"; ' Ls-al ';
$sql = "Select ' username ' from ' table '
20.PHP5 Interface TechnologyPHP, like most object-oriented programming languages, does not support multiple inheritance. That is, each class can inherit only one parent
Class. To solve this problem, PHP introduces the interface, the idea is to
10.__set () __get () __isset () __unset ()-- application of four methods
In general, it is more logical to define the attributes of a class as private. However, the read of the property
and assignment operations are very frequent, so in PHP5, two
Disadvantages: Long width of the picture will be stretched deformation, can not be intelligent cutting, need intelligent cutting, please study for yourself.
$config = Array ();
$config [' path '] = './';
$config [' t_width '] = 120;
$config ['
Subscript: The distinguished name in an array is the symbol of a string or integer in an array
Several index values in an array are called several-dimensional arrays.
Index value: An index is a structure that sorts the values of one or more columns
Arithmetic operators
Operator name Result
$a + $b addition $a and $b and
$a-$b subtraction $a and $b difference
$a * $b multiplication of $a and $b
$a/$b division $a divided by $b quotient
$a% $b modulo $a divided by the remainder of the
The application of Web
When the client requests to the server's program, the Web server responds to the Request Response page, when the page contains a PHP script, the server will give the PHP interpreter to interpret the execution, the generated
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