PHP page request principle

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.