Home > Backend Development > PHP Problem > PHP basic principles

PHP basic principles

藏色散人
Release: 2023-02-27 14:06:01
Original
2338 people have browsed it

PHP basic principles

Basic principles of php

How PHP works

PHP All applications are completed through WEB server (such as IIS or Apache) and PHP engine program interpretation and execution. The working process is:

(1) When the user enters the PHP page file to be accessed in the browser address name, and then pressing Enter will trigger the PHP request and transmit the request to a WEB server that supports PHP.

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

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

(4) The PHP engine will generate an HTML page and return it to the WEB server. The WEB server then returns the HTML page to the client browser.

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of PHP basic principles. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template