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!