Home  >  Article  >  Backend Development  >  What is the process of php in web development?

What is the process of php in web development?

(*-*)浩
(*-*)浩Original
2019-10-15 11:59:153673browse

PHP website construction, then the operation of the website on the client and server is the foundation of website operation. What is the operation process like?

What is the process of php in web development?

Web: Terminal

Server web: We call the computer that provides (responds to) services Server, also called server side. (Recommended learning: PHP video tutorial)

Client web: The computer that accepts (requests) services is called the client (Client), also called the client.

The processing process of php in web development

The operating principle of php is the collaboration process between Apache, PHP and browsers:

When the user enters the file name of the PHP page to be accessed in the browser address and presses Enter, the PHP request will be triggered and the request will be sent to the WEB server (apache) that supports PHP.

WEB server (apache) accepts this request and judges it based on its suffix. If it is a PHP request, WEB server (apache) takes out the PHP application the user wants to access from the hard disk or memory and sends it To PHP engine program.

The PHP engine program will scan the file sent from the WEB server (apache) from beginning to end, read it from the background according to the command, process the data, and dynamically generate the corresponding HTML page.

The PHP engine will generate an HTML page and return it to the WEB server (apache). The WEB server (apache) then returns the HTML page to the client browser, and the last complete page is displayed in front of us through the browser.

So besides apache, what other servers support php?

PHP has very good compatibility. Almost all web servers support PHP. The mainstream servers that can run PHP include apache, nginx, and iis.

The above is the detailed content of What is the process of php in web development?. 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