Home >Backend Development >PHP Tutorial >Detailed explanation of front-end and back-end interaction

Detailed explanation of front-end and back-end interaction

韦小宝
韦小宝Original
2018-03-14 17:33:346301browse

This article talks about the interaction between front-end and back-end. If you don’t know about the interaction between front-end and back-end or are interested in the interaction between front-end and back-end, let’s take a look at this article together. Okay, enough nonsense. Let’s get to the point!

What is a web server?


Server: Popular understanding, a machine that works 24 hours a day
Web server: A machine that works 24 hours a day and can handle web requests Server

Look at the picture and speak with examples

Detailed explanation of front-end and back-end interaction

Detailed explanation of front-end and back-end interaction

2. web server The operating system

Since the server is a machine, then there will be an operating system
The common operating system installed on the server is Linux , Linux will have many different versions, such as ubuntu, centos, and redhat. Windows is not as dominant as the personal operating system in the server field (everyone has used Windows, so I won’t go into details here), so why do server operating systems use Linux? The reason is that the non-graphical interface and operating system resources The occupancy rate is small.

Detailed explanation of front-end and back-end interaction

Picture description: Tencent Cloud Server (Linux-centos7) (1 yuan student price, very affordable), login software putty, portal: download

Detailed explanation of front-end and back-end interaction

3. Web server application

With the operating system, then it comes to applications, so-called applications, It is to provide a specific function. Here I compare it to an application under Windows (vc++6.0)

Detailed explanation of front-end and back-end interaction

You can use it to write

C language, it provides a compilation environment for C language. Next, let’s talk about the web backend. I believe that even if you don’t understand the backend, you have heard of backend languages, such as: php, java, .net, nodeJS, then these languages ​​​​are required A "VC++6.0" in the background, here is the apache, tomcat, nodeJs

Detailed explanation of front-end and back-end interaction

that we have heard about on weekdays.

4.Web background language

We usually hear about

php, java, .net, nodeJS

simple implementation of hello, world, as shown below

Detailed explanation of front-end and back-end interaction

Server-side application + background language==real server background application

Detailed explanation of front-end and back-end interaction

5. Database

If the server wants to store data, it must use a database

Common databases include
Mysql, SqlServer, Oracle

Detailed explanation of front-end and back-end interaction

6. A complete web background processing process

Detailed explanation of front-end and back-end interaction

Front-end and back-end It is actually very simple to interact with the terminal, but it is actually very complicated.


Related recommendations:

Summary of related content about front-end and back-end interaction

The above is the detailed content of Detailed explanation of front-end and back-end interaction. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn