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.