[Php learning] the first chapter of the classic PHP entry notes, Chapter 1 of php _ PHP Tutorial

Source: Internet
Author: User
Tags php online php template
[Php learning] the first chapter of the classic PHP getting started, and the first chapter of php. [Php learning] the first chapter of the classic PHP entry notes, the first chapter of php: php online manual: php. netmanualzhindex. before learning php, let's take a look at a qualified P [PHP learning] first chapter of the php getting started classic, and the first chapter of PHP.

Chapter 1:

Php online manual: http://php.net/manual/zh/index.php

Before learning PHP, let's first look at the knowledge that a qualified PHP programmer should possess in the future. here is just a summary of the Author, hoping to help readers in the next learning.

In a broad sense, it is not enough for PHP programmers to master PHP only. they need to learn more about PHP in order to develop better and better software. You need to master HTML, DIV, CSS, and Javascript scripts during the front-end page setting process; you need to master basic server configuration knowledge and security filtering permissions in terms of program security; in terms of program optimization and performance, you need to master the basic knowledge and optimization of the database.

Before learning this book, we should make the following preparations.
Token has enough confidence and preparation time (many losers give up halfway because they don't have time ).
Just a little mathematical basics (using less, PHP focuses more on logical programming ).
Just a few basic English letters (26 letters ).
Just a little bit of Network Basics (understand some basic network terms, such as emails, HTTP, and logon ).

1. simple [description] functions of the PHP pre-processor, Web server, and database during the PHP program running process, and briefly describe the workflow of the PHP program

Php pre-processor features:Asp PHP. net web languages are the same, which can be queried through computer systems and databases. Generate the result on the server and display it to the client in HTML format.

Web server features:A web server is used to receive an HTTP request and respond to this request (for example, to operate on database data according to the client request). in WEB development, if a client initiates a request to the server, there must be a WEB server. otherwise, no one will accept this request.

Database features:A database is a group of computer-organized data stored in one or more files. the software used to manage the database is called a database management system.

Has the following features:
(1) Data definition function. DBMS provides the corresponding data language to define the (DDL) database structure, which depicts the database framework and is saved in the data dictionary.
(2) data access function. DBMS provides a data Control Language (DML) for basic database data access operations: Retrieval, insertion, modification, and deletion.
(3) database operation management function. DBMS provides data control functions, that is, data security, integrity, and concurrency control to effectively control and manage database operations to ensure data correctness and effectiveness.
(4) database creation and maintenance functions. Including loading initial database data, database dumping, recovery, re-organization, system performance monitoring, analysis, and other functions.
(5) database transmission. DBMS provides data transmission for communication between user programs and DBMS, which is usually completed in coordination with the operating system.

Workflow of the PHP program:PHP is a server-side programming language. it is similar to the C language. it translates your program logic into HTML hypertext markup language that can be recognized by the browser and is displayed in the client browser.

What is the process of running the php script language on the web server?

A web server is used to receive an HTTP request and respond to this request (for example, to operate on database data according to the client request). in WEB development, if a client initiates a request to the server, there must be a WEB server. otherwise, no one will accept this request. In early WEB development, CGI was used to process client requests. at that time, there was no such language for WEB development, such as PHP, HTML code and background logic code cannot be separated. Therefore, the results returned by CGI programs usually contain HTML code. the browser receives the entire result and then renders it. Later, with PHP, a WEB development language that can separate the front and back ends, PHP code is only responsible for processing background logic and storing a large amount of HTML code in static HTML files, the final rendering result of the browser is the comprehensive result of the HTML code returned by the server, JS code, CSS code, and PHP template output. In the early days, the web server was running with CGI as a bridge and then running the php script language.

Beginners classic first chapter notes, php first chapter: php online manual: http://php.net/manual/zh/index.php before learning PHP, first look at a qualified P...

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.