PHP Execution Process php7 PHP environment build PHP from beginner to proficient

Source: Internet
Author: User
PHP Execution Process

The source code computer in any language has no way to execute directly, and it needs to be converted into machine instructions that the computer can recognize.

PHP is also a high-level language and needs to be compiled (explained)

The parsing process for PHP:

1, the request source code, carries on the lexical parsing, the grammar parsing.

Lexical analysis, the main source code in the word to read, judge, lexical analysis, if there are errors, will error. Compilation error.

Grammar parsing, the main judge of grammatical structure is correct. For example, whether the process control structure is complete.

Result: Executable machine code

2, execution, execution is mainly the operation of the memory, execution may also occur error, error property execution error.

Result: pure HTML code.

Graphic:

The above describes the PHP implementation process, including the content of PHP, I hope to be interested in PHP tutorial friends helpful.

  • 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.