Introduction to PHP Operating Procedures and principles
Source: Internet
Author: User
I. Running PHP with the script command line (1) Open cmd.exe (winkey+r)
(2) Find Php.exe (drag into cmd)
(3) Enter command php.exe-f "file actual path"
Note: Run code php.exe-r "code"
A concept:
In the running mode of Web software, a request is always initiated on the client (browser side), and then the server side generates a feedback action (that is, "Run" program), and therefore returns to the browser information-(response)
Two. Web Run process 1, browser input address, enter (send request)
2 Find the corresponding Web server according to the rules
(1) First find the corresponding IP in the native Hosts file
Location: Operating system/system32/drivers/etc/
Note: You need to open the editor as an administrator to edit and save his
(2) If not found in the hosts, find the corresponding IP on the Internet (DNS server)
(3) Still not found, terminating the request, returning the "server not found" prompt
3.web server obtains the corresponding file (that is, the requested file)
4. If necessary, process the file (PHP code execution)
5. Return the file (or execution result file) to the browser (return answer)
6. The browser accepts the file
7. Browser processing files (display/execution)
How PHP Web pages work
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