mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
da755950ab
commit
1785b2da42
1 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue