php_sapi_name()
returns the name of the Server API (= SAPI) in lower case letters, such as apache
apache2handler
cgi
cgi-fcgi
cli
(for example when php
is started as interactive shell with command line argument -a
)
cli-server
embed
fpm-fcgi
litespeed
phpdbg