Php file parsing-php Tutorial

Source: Internet
Author: User
Regarding php file parsing, will apache directly process the. PHP file requested by the user after receiving the client request?
If no PHP code in the PHP file is pure HTML code, is it also handled by the PHP module parser? Or is it handled through APACHE?


Reply to discussion (solution)

Yes, it is still handled by php.

Yes, it is still handled by php.
I personally think it should be the beginning of a PHP parser, for example It is processed at the end. The remaining non-PHP is returned to APACHE, and then APACHE is returned to the customer directly.

According to your understanding, it is apache's explanation. ?
Apparently not!
It is explained by the php interpreter!

According to your understanding, is it apache?
Apparently not!
It is explained by the php interpreter!

My understanding is: PHP parser explanation After processing, apache is returned together with the results and non-PHP code. apache returns the results to the customer. Return directly without parsing

Non-php code is not executed (and cannot be executed), which is also part of the php parser function
First, he must identify the php code and then output it as is.

Non-php code is not executed (and cannot be executed), which is also part of the php parser function
First, he must identify the php code and then output it as is.

Thank you for posting.

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.