HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

php_sapi_name

Description

The php_sapi_name of Options / Information for PHP 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 · void

<?

$return = php_sapi_name();

echo $return;
litespeed