Gen. partnerAlgotech

PHP function php_sapi_name()

Returns the type of interface between web server and PHP

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.