[PHPDOC] cvs: phpdoc /en/functions misc.xml From: Kristian Köhntopp (kk <email protected>)
Date: 06/26/00

kk Mon Jun 26 07:33:39 2000 EDT

  Modified files:
    /phpdoc/en/functions misc.xml
  Log:
  Added documentation for php_sapi_name()
  
  
Index: phpdoc/en/functions/misc.xml
diff -u phpdoc/en/functions/misc.xml:1.10 phpdoc/en/functions/misc.xml:1.11
--- phpdoc/en/functions/misc.xml:1.10 Sat Jun 24 00:38:43 2000
+++ phpdoc/en/functions/misc.xml Mon Jun 26 07:33:39 2000
@@ -854,6 +854,41 @@
    </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>