php_sapi_name
Description
Returns the type of interface between web server and PHP
Syntax
php_sapi_name(): string|false
Return
Returns the interface type, as a lowercase string, or false on failure.
Although not exhaustive, the possible return values include apache, apache2handler, cgi (until PHP 5.3), cgi-fcgi, cli, cli-server, embed, fpm-fcgi, litespeed, phpdbg.
Examples
1
<? $return = php_sapi_name(); echo $return; ?>
litespeed