Web page language has html,php.jsp, regardless of what language browser always can display normally, this parsing work is done by the browser?

Source: Internet
Author: User
No, the browser's most basic language is html
In other words, the browser can only understand html, css, js, etc.
For other server-side dynamic scripts, such as php, jsp, etc., the parsing work is done on the server!
For example, everything you see on the computer display, you see on the display, but their operation is running in the computer host, the display is just a display!
Of course, browsers cannot parse php, so why can you view the contents of php and other files in the browser?
That's because there is a php parser on the server, such as apache + php. When the browser requests a php file, the parser will logically process and compile the php file, and then convert the compiled result into an html source. Send to browser for display. . . .
Follow up:
Wow, great god, just wait for this explanation, wait for your hard work!
1) In this way, I know the role of apache. Does the apache server come with php and jsp parser?
2) When data is exchanged, in what form does the data transmitted by the server to the browser exist? Is it parsed html program or binary code?
Post reply:
1, apache is just a web parser, it does not have any server-side script, such as php or something
  To parse php, you need to go to the php official website to download the corresponding version and integrate php with apache. In fact, you can load php as an Apache component or module on apache.
2. Is it binary? I do n’t really care about this. Anyway, the browser only parses html, that is, no matter what the language of the webpage is, the operating mechanism process is different. In the end, it must be converted into html. In other words, html is The basics of web pages!
The webpage language has html and php.jsp. No matter what language the browser can always display normally, is the browser to complete this parsing work?

Related Article

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.