mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Fixed english version and updated de/it/ja versions.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@27161 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7a8b2948e4
commit
548c2bb986
1 changed files with 5 additions and 4 deletions
|
@ -603,23 +603,24 @@ echo "Current PHP version: ".phpversion();
|
|||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>string <function>php_sapi_name</function></funcdef>
|
||||
<paramdef>void</paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
<function>php_sapi_name</function> returns a string which
|
||||
<function>Php_sapi_name</function> returns a 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.
|
||||
</simpara>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>php_sapi_name</function> example</title>
|
||||
<title><function>Php_sapi_name</function> Example</title>
|
||||
<programlisting role="php">
|
||||
$inter_type = php_sapi_name();
|
||||
if ($inter_type == "CGI")
|
||||
print "You are using CGI PHP\n";
|
||||
print "You are using CGI PHP\n";
|
||||
else
|
||||
print "You are not using CGI PHP\n";
|
||||
print "You are not using CGI PHP\n";
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue