Web run process Web front-end development web WeChat WebSocket

Source: Internet
Author: User
Tags php language
1. Browser input URL, enter the server to send a request;

2. Follow the rules to find the Web server corresponding to the website, rules;

• First find the IP address of the domain name in the local Hosts file

Hosts file address: C:\Windows\System32\drivers\etc;

Note: To open a text editor as an administrator, edit the correspondence between IP and the domain name, otherwise it will not take effect.

· If the corresponding relationship is not found in the Hosts file, then the corresponding IP of the domain name is obtained on the Internet (DNS server);

The DNS server manages the correspondence between the domain name and IP, and collects administrative fees;

• If not found, terminate the request and return the "server not found" prompt;

3.Web server obtains the requested domain name corresponding file;

4. If necessary (PHP file), the file for further processing:

The Server Software (Apache) uses the PHP language parsing engine to parse the PHP file into an HTML file, which is referred to the browser;

When parsing PHP files may be associated with the database (MySQL), to use the MySQL language operation database, return to the PHP file after parsing the HTML file;

5. Return the target file to the browser (in response to browser requests);

6. The browser accepts the file and parses the execution.

The above describes the Web run process, including the web aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • 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.