Class inheritance in PHP is one of the most commonly used programming features, we can create a base class (the parent Class) and then define some basic methods in this, in our subclasses we can extend the methods in the parent class this is called
When we log in to the site management backstage, there will be prompted to remember the status of login, remember me and so on, this option is what to use it. If you check the log in state, the next time you browse the Web site does not need to fill
PHP, Nginx are all installed, configured for a long time is not right. It's just a good whole.
Nginx.conf began to be
server {listen 8080;
server_name localhost;
#charset Koi8-r;
Access_log Logs/host.access.log Main;
Because the line-wrapping in the textarea is "\ n" or "\ r \ n" (Linux is entered as ' \ r \ n ', Windows is ' \ n ') the newline in normal HTML is or ;
Situation one, if the content of the textarea directly into the database, the newline in the
PHP variables Scope in PHP, you can declare variables anywhere in the script. The scope of a variable refers to the part of the script that the variable can be referenced/used.
PHP has three different scope variables: local global (Global) static
1. Create an array
In programming languages, values and strings are called scalar variables, and a scalar variable can only represent a single numeric value or string. For example, $YDTX = the variable $ydtx in "mobile communication" is a scalar
The server provides a file download, typically using a URL pointing to a file in the server to provide downloads.
But this can not be statistics, permission detection and other operations.
Therefore, the general use of PHP to provide downloads, the
First, Chinese interception: Mb_substr ()
Mb_substr ($str, $start, $length, $encoding)
$str, a string that needs to be truncated
$start, starting at 0 at the beginning of the truncation
$length, the number of words to intercept
$encoding, page
What is the difference between get and post in PHP and when to use a post to explain
difference:
1, get is generally the data transmitted after the hyperlink, the amount of data transmitted is small, can not be greater than 2KB.
2, post is
One PHP script index.php
switch statement Application " Class= "STYLE4" > Back home Add to Collection & lt;/td> &nb sp; Latest Products Popular products "> Featured Products > Special Products
Latest products
The name of the function
Interpretation
Introduced
Htmlspecialchars
Converts to HTML format with, single double quotes, greater than and less than
& Turn "Turn into "' Turn into & #039;> Turn >
PHP core technology and best practices in reverse reference to regular expressions
A reverse reference is used to repeat the search for text that matches a previous grouping. For example: "\1" represents grouped 1 matching text:
\b (\w+) \b\s+\1\b
Serialization (serialized)
1. Turn objects into strings (do not read this string)---serialization
2. Process of returning a string to an object---drag
Note (serialization time):
1. Transfer objects to the network
2. Persist the object because in
Need to the provincial urban area three tables to query, the query results are assembled into the following format, to facilitate the preceding paragraph JS call
Array (size=34)
1 =>
Array (size=4)
' id ' => int 1
' name ' =>
There are several types of PHPHow the various types of PHP are convertedPHP input and output modePHP Type: 4 kinds of scalar types Int,float,string,bool2 types of composite Array object2 special types of resource nullPHP has no underfinedThe
Http://www.cnblogs.com/zqifa/p/php-6.html
For most cryptographic cryptography, we can use MD5, SHA1 and other methods. Can effectively prevent data disclosure, but these methods apply only to data encryption that does not need to be restored.
For
Today finally have time to think oneself took a set of LNMP development environment, as a result of the previous development environment are the company's existing, the use of the time to change the configuration on the OK, feel very relaxed, but
Cookies Operation class
function:
1. Save, read, update, and erase cookies data.
2. You can set a prefix.
3. Force timeout control.
4.cookies data can be strings, arrays, objects, and so on.
Cookies.class.php
_prefix = $prefix;
} if
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