PHP page request principle
Han shunping PHP Course Series notes
Web Site
A web site is a collection of multiple web resources. Simply put, you can think of a Web application as a directory on the hard disk, which is used to manage multiple web resources. A web site consists of multiple web resources or other files, including HTML files, CSS files, JS files, PHP files, and configuration files. When developing a web site, you should store these files according to the specified directory structure. Otherwise, the website cannot be accessed normally when it is handed over to the Web server for management, the Web server may not be started properly.
The location of Apache and PHP in the network is shown in:
PHP page request principle
Take test. php as an example. The code for test. php is as follows:
<HTML>
The httpwatch tool can be used to view the PHP page request principle. The tool is used as shown in:
Shows the PHP page request process:
It can be seen that the PHP script is not executed on the browser, but is now executed on the server, and then the executed page data is returned to the browser for display by the browser.