PHP Manual

PHP function php_sapi_name()

2019-09-11T08:04:03.000Z

Obsah článku

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

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
261.

V jiných jazycích

Status:
All systems normal.
2025