Home  >  Article  >  Backend Development  >  Web running process web front-end development web WeChat websocket

Web running process web front-end development web WeChat websocket

WBOY
WBOYOriginal
2016-07-29 08:49:31912browse

1. Enter the URL in the browser and press Enter to send a request to the server;

2. Find the Web server corresponding to the URL according to the rules, rules;

· First, find the IP corresponding to the domain name in the local hosts file

hosts File address: C:WindowsSystem32driversetc;

Note: You must open a text editor as an administrator to edit the corresponding relationship between IP and domain name, otherwise it will not take effect.

· If no corresponding relationship is found in the hosts file, then go to the Internet (DNS server) to obtain the corresponding IP of the domain name;

· The DNS server manages the correspondence between the domain name and the IP and charges a management fee;

· If it has not been found yet , then terminate the request and return the "server not found" prompt;

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

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

                  Server software (Apache) Use the PHP language parsing engine to parse the PHP file into an html file and hand it over to the browser;

It may be associated with the database (mysql) when parsing the PHP file. You need to use the MySQL language to operate the database and return to the html after parsing the PHP file. file;

5. Return the target file to the browser (respond to the browser request);

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

The above introduces the Web operation process, including web content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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