PHP执行过程,php执行
PHP执行过程
任何一种语言的源代码计算机都没有办法直接执行,需要转换成计算机能够识别的机器指令。
PHP也是一门高级语言,也需编译(解释)
PHP的解析过程:
1、请求源代码,进行词法解析,语法解析。
词法解析,主要对源代码中的单词进行一个个的读入,判断,词法解析时,如果有错误,会报错。编译错误。
语法解析,主要判断语法结构是否正确。比如:流程控制结构是否完成。
结果:是可执行的机器代码
2、执行,执行时主要是对内存的操作,执行时也可能会出现错误,此时错误属性执行错误。
结果:纯的html代码。
图解:

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.