PHP execution process, php execution. PHP execution process, php execution process any language of the source code computer can not be directly executed, need to be converted into computer recognition machine commands. PHP also executes the PHP execution process.
PHP execution process
Source code computers in any language cannot directly execute the commands, and must be converted into machine commands that can be recognized by computers.
PHP is also a high-level language and requires compilation (explanation)
PHP parsing process:
1. Request source code for lexical parsing and syntax parsing.
Lexical parsing mainly reads, judges, and analyzes words in the source code one by one. If an error occurs during lexical parsing, an error is returned. Compilation error.
Syntax parsing mainly determines whether the syntax structure is correct. For example, whether the process control structure is complete.
Result: the machine code is executable.
2. Execute. during execution, the main task is to perform memory operations. during execution, errors may occur. in this case, the error attribute is incorrectly executed.
Result: pure html code.
Illustration:
In the execution process of PHP, the source code computers in any language cannot be directly executed, and the commands must be converted into machine commands that can be recognized by the computer. PHP too...