PHP生命周期中,每个阶段都有哪些关键环节和事件触发?
- 内容介绍
- 文章标签
- 相关推荐
本文共计572个文字,预计阅读时间需要3分钟。
PHP的架构图包括SAPI,SAPI(Server Application Programming Interface)是服务器提供的应用程序编程接口(API),帮助开发者扩展服务器功能。SAPI是一个用于辅助其他开发的工具。
PHP的架构图SAPI
SAPI(Server Application Programming Interfac) is an application programming interface (API) provided by the web server to help other developers in extending the web server capabilities.
SAPI是一个用来帮助其他开发程序扩展web服务器功能的应用程序接口(api)。它将外部条件抽象, 为内部的PHP提供一套固定统一的接口, 使得PHP自身实现能够不受外部环境影响,保持一定的独立性。
PHP中常用的SAPI有cli(命令行模式,单进程)、php-fpm、CGI、Apache...
有点像策略模式,使用相同的接口,但是实现会略有不同。
本文共计572个文字,预计阅读时间需要3分钟。
PHP的架构图包括SAPI,SAPI(Server Application Programming Interface)是服务器提供的应用程序编程接口(API),帮助开发者扩展服务器功能。SAPI是一个用于辅助其他开发的工具。
PHP的架构图SAPI
SAPI(Server Application Programming Interfac) is an application programming interface (API) provided by the web server to help other developers in extending the web server capabilities.
SAPI是一个用来帮助其他开发程序扩展web服务器功能的应用程序接口(api)。它将外部条件抽象, 为内部的PHP提供一套固定统一的接口, 使得PHP自身实现能够不受外部环境影响,保持一定的独立性。
PHP中常用的SAPI有cli(命令行模式,单进程)、php-fpm、CGI、Apache...
有点像策略模式,使用相同的接口,但是实现会略有不同。

