First Stage
First, the Web Foundation
1.1 Basic knowledge of the website;
1.2 Introduction of network protocols;
1.3 b/S and C/s structure of the difference;
1.4 Web programming, Web development technology Introduction.
Second speaking, web
This makes it easy and quick, but it tends to be sensitive when it comes to storing information, which can be targeted, such as bank accounts, credit card transactions, or archival records. This requires security measures when writing code to reduce
A String insertion
The difference between a double quote and a single quote:
1. Use of double quotes:
Copy CodeThe code is as follows:
Double quotation marks can parse variables and escape characters
$username = "Jack";
echo "His name is
I do not know the original to write in the essay.
All right, the first blog post.
There are three of classes:
1. Filter input (Lightweight)
Class Input_filter
Responsible for the filtering of parameters such as $_get,$_post
The return value type is
Hackers through SQL injection attacks can get access to the site database, then they can get all the data in the site database, malicious hackers can use SQL injection function to tamper with the data in the database and even destroy the data in the
The principle of XOR algorithm
From the main method of encryption, the transposition method is too simple, especially for the case of less data, it is easy to guess the plaintext by ciphertext, and the substitution method is an effective and simple
This article describes how to implement a time-based transformation of the timeline.
First we need to understand several functions of time:
Time (): Returns the current Unix timestamp
Date (): Formats a local time/date.
Application Examples:
Copy
PHP syntax is simple, the application is very good, and the class library is powerful, it can really write a very powerful server side. It would be great for someone like me who only needs a small-function server.
Simply to learn PHP, I think it is
PHP page to UTF-8 encoding problem
1. Add a line at the beginning of the code:
Copy CodeThe code is as follows:
Header ("Content-type:text/html;charset=utf-8");
2.PHP File Encoding Issues
Click on the Editor's menu: "File", "Save As", you can see
First look at CakePHP's implementation process (from Baidu Encyclopedia borrowed Pictures):
1: First your server must support rewrite, if it is not supported rewrite virtual host, cakephp will not work properly.
2: After all requests are directed to
Copy CodeThe code is as follows:
Class session
{
Static $sessionObject;
/* $_session[' user '] = = 0, don ' t work.
* = = 1, he is really user.
*/
Private Function __construct ()
{
if (! (Isset ($_session[' user ') && $_session[' user
Recently want to write a crawler in PHP, you need to parse the HTML, found on SourceForge a project called PHP simple HTML DOM Parser, it can be similar to jquery through the CSS selector to return the specified DOM elements, the function is very
PHP uses arrays as a stack, mostly using Array_push () and Array_pop () two system functions. The main use of the Array_push () function is to add one or more elements to the end of the first parameter's array, and then return the length of the new
Copy CodeThe code is as follows:
$full _name = Array ();
$full _name["Roger"] = "Waters";
$full _name["Richard"] = "Wright";
$full _name["Nick"] = "Mason";
$full _name["David"] = "Gilmour";
To sort this array, you just use the Assort () function.
The array in PHP is actually an ordered map. A map is a type that associates values to the keys . This type is optimized in many ways, so it can be used as a real array, or as a list (vector), a hash (an implementation of a mapping), a dictionary, a
NL2BR ();/\ n to
Addslashes (); Stripslashes ();//Escape special characters when working on a database
Chop ();//Remove the right space of the string
Trim ();//Remove all spaces in the string
LTrim ();//Remove the left space of the
Grammar
sprintf (format,arg1,arg2,arg++)
Parameters
Description
Format
Necessary. Conversion format.
Arg1
Necessary. Specifies the parameter that is inserted into the first% symbol in the format
Although some judgments and limitations will be added before these procedures. But in addition to the library files, there are temporary files, template files and so on these files should not be directly accessed through the Web. Store inaccessible
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