PHP 忒聊 綴豖 ヶ輛 php_sapi_name (PHP 4 = 4.0.1) Description php_sapi_name() returns a lowercase string which describes the type of interface between web server and PHP (Server API, SAPI). In CGI PHP, this string is "cgi", in mod_php for Apache, this string is "apache" and so on. 瞰赽 1. php_sapi_name() Example $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