ң

php_sapi_name

(PHP 4 >= 4.0.1)

php_sapi_name - web- PHP.

string php_sapi_name (void)

php_sapi_name() , web- PHP (Server API, SAPI). CGI PHP "cgi", mod_php Apache "apache" .

1. php_sapi_name()
$sapi_type = php_sapi_name(); if ($sapi_type == "cgi") print "You are using CGI PHP\n"; else print "You are not using CGI PHP\n";

ң
php_logo_guid php_uname