php_sapi_name() always returns lowercase strings

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@27515 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Stefan Livieratos 2000-07-02 10:54:04 +00:00
parent da755950ab
commit 1785b2da42

View file

@ -607,17 +607,17 @@ echo "Current PHP version: ".phpversion();
</funcprototype>
</funcsynopsis>
<simpara>
<function>Php_sapi_name</function> returns a string which
<function>Php_sapi_name</function> 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.
(Server API, SAPI). In CGI PHP, this string is "cgi", in
mod_php for Apache, this string is "apache" and so on.
</simpara>
<para>
<example>
<title><function>Php_sapi_name</function> Example</title>
<programlisting role="php">
$inter_type = php_sapi_name();
if ($inter_type == "CGI")
if ($inter_type == "cgi")
print "You are using CGI PHP\n";
else
print "You are not using CGI PHP\n";