PHP's cmd Browse
Run PHP File: php.exe-f "php file path" (does not recognize tags in HTML) Note the path to the Php.exe file
Run PHP code: php.exe-r "PHP script code" (write PHP code directly inside)
PHP Runtime Environment
In the running mode of the Web software, it is always the client (browser side) that initiates a "request" and then the server side generates a feedback action (that is, "run" the program), and therefore returns to the browser certain information-the so-called answer (response)
Web Run Process
Locate the corresponding Web server according to the rules. The rules are as follows:
Hosts file location: C:\Windows\System32\drivers\etc
Note: You need to open the editor as an administrator to edit and save it
The role of the hosts: find the corresponding IP in the browser according to the specified file
localhost and www.abc.com correspond to 127.0.0.1 corresponding to local files, so we should look for the same page after we visit localhost and www.abc.com.
If the hosts are not found, then go to the Internet to find the corresponding IP (DNS server "Usually we say the domain name, but buy the domain name to spend money")
If it is still not found, terminate the request and return the "server not found" prompt
PHP cmd Browsing and the role of the hosts