search

Home  >  Q&A  >  body text

How to get the current running mode of php?

There are five common SAPI modes:

CLI和CGI模式(单进程模式)
多进程模式
多线程模式
FastCGI模式
嵌入式

请问,我如何知道当前我的php在哪种模式下运行?
为情所困为情所困2783 days ago791

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-07-03 11:42:17

    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.

    reply
    0
  • Cancelreply