There are five common SAPI modes:
CLI和CGI模式(单进程模式) 多进程模式 多线程模式 FastCGI模式 嵌入式 请问,我如何知道当前我的php在哪种模式下运行?
php_sapi_name
Returns the lowercase string of the interface type.
Although not comprehensive enough, possible returned values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP 5.3), cgi-fcgi, cli, cli-server, continuity, embed, fpm-fcgi, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux and webjames.
php_sapi_name
Returns the lowercase string of the interface type.
Although not comprehensive enough, possible returned values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP 5.3), cgi-fcgi, cli, cli-server, continuity, embed, fpm-fcgi, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux and webjames.