PHP function php_sapi_name()

Availability in versions: PHP 4.0.1

Returns the type of interface between web server and PHP

Parameters

The function has no input parameters.

Return values

string

the interface type, as a lowercase string.

Although not exhaustive, the possible return values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP 5.3), cgi-fcgi, cli, continuity, embed, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux, and webjames.

Other resources

Official documentation for php-sapi-name

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.