mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Added documentation for php_sapi_name()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@27129 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
88be809b97
commit
fbfad5e077
1 changed files with 35 additions and 0 deletions
|
@ -854,6 +854,41 @@ $binarydata = pack ("nvc*", 0x1234, 0x5678, 65, 66);
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.php-sapi-name">
|
||||
<refnamediv>
|
||||
<refname>php_sapi_name</refname>
|
||||
<refpurpose>
|
||||
Returns the type of interface between web server and PHP
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>string <function>php_sapi_name</function></funcdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
<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_module</function> example</title>
|
||||
<programlisting role="php">
|
||||
$inter_type = php_module();
|
||||
if ($inter_type == "CGI")
|
||||
print "You are using CGI PHP\n";
|
||||
else
|
||||
print "You are not using CGI PHP\n";
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.serialize">
|
||||
<refnamediv>
|
||||
<refname>serialize</refname>
|
||||
|
|
Loading…
Reference in a new issue