Some common knowledge points in PHP

Source: Internet
Author: User
Tags learn php

I. Knowledge of scripting language

1. Common scripting languages are: Html,css,js,asp,python, etc.2. Scripting language Features:A. Grammar and institutions are usually relatively simpleB. Learning and use are usually relatively simplec. Generally, the "interpretation" of the program is easy to modify as a way of running, without the need to "compile"D. Program development capacity is superior to operational efficiency3. Uniform Resource Locator URL format: HTTP://<IP address >/[port number/[path]/[?< query information;]if the default port 80 can be omitted, the other ports must be specified in the URL

Ii. Web artifacts required for dynamic web development

1, client Ie/firefox/safari and many other browsers2. Hyper-Text Markup Language HTML3. Cascading Style Sheets CSS4. Client Script programming language JavaScript5. Server Programming language PHP6, database management system MySQL

Third, Apache

Apache is the world's number one Web server, which can run on almost any widely used computer platform. Features are simple, fast, stable performance

Four, lamp development platform

lamp is the standard abbreviation for Linux + Apache + mysql + PHP. Features: simple, low cost, high security, fast development speed and flexible implementation.

V. PHP

     PHP is a "hypertext preprocessor" is a server-side, embedded in HTML scripting language, easy to use powerful, is the ideal tool for developing Web applications

Vi. How to learn PHP

1, Phase one: Understand how PHP is written and how to run and configure the use of files. Learn about PHP's basic syntax, variables, constants, operation symbols, expressions, process controls, functionsUnderstanding the weak type concept of PHP2. Stage Two: Mastering the application of arrays, strings and regular expressions3. Stage Three: Mastering the object-oriented technology of PHP4, stage four: Learn PHP common to the function module5, Phase five: Learn PHP and database links

VII. Code Specification

1) Use of two empty rows: 1. A source file between two code fragments. 2. Between declarations of two classes2) When using a blank line:1. Between two function declarations2. Between the local variables within the function and the first statement of the function3. Block comments and line comments before. 4. Between two logical code segments within a function to improve readability.

VIII. Declaration of variables

1) unset (): Releases the specified variableisset (): Detects if the variable is set and usedEmpty (): Checks if the variable is emptyNote: The difference between empty () and Isset () is recommended! Empty ($var) This method to determine the existence of a variable and cannot be empty. Two associated variables, after executing the unset () function, the variable is not emptied and is disassociate. 2) Name of the variable:If the variable is made up of multiple words, the first letter is lowercase and the first letter of the other word is capitalized, using the camel style.

Ix. the difference between a session and a cookie:

1. The most important difference between a session and a cookie is that the cookie stores the data in the client computer, and the session stores the data under the server system. 2, session of the Chinese meaning is a conversation, usually refers to the user and the web system of the dialogue process3, because the cookie is stored on the client computer, the user has the right to block the use of cookies, so that the Web server cannot track user information through cookies. The session technology is to store user-related information in the server system, so users can not stop the use of the session.

Ten, MVC pattern

MVC is a very important design pattern, model, view, controller synthesis.

The purpose of the MVC pattern is to realize the functional division of the web system, it is mandatory to make the application input, processing, and output separate, can each handle their own tasks, is a layered concept.

Some common knowledge points in PHP

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.