php_sapi_name详解

php_sapi_name :

— 返回 web 服务器和 PHP 之间的接口类型。

返回描述 PHP 所使用的接口类型(the Server API, SAPI)的小写字符串。 例如,CLI 的 PHP 下这个字符串会是 "cli",Apache 下可能会有几个不同的值,取决于具体使用的 SAPI。 以下列出了可能的值。

返回接口类型的小写字符串。

尽管不够全面,可能返回的值包括了 aolserverapache、 apache2filterapache2handler、 caudiumcgi (直到 PHP 5.3), cgi-fcgicli、 cli-server、 continuityembedfpm-fcgi、 isapilitespeed、 milternsapi、 phttpdpi3webroxen、 thttpdtux 和 webjames

原文地址:https://www.cnblogs.com/webStyle/p/4536300.html