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

kk Mon Jun 26 08:11:26 2000 EDT

  Modified files:
    /phpdoc/en/functions info.xml misc.xml
  Log:
  Moves docs for php_sapi_version() to different chapter.
  
  
Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.6 phpdoc/en/functions/info.xml:1.7
--- phpdoc/en/functions/info.xml:1.6 Sat Jun 24 00:38:43 2000
+++ phpdoc/en/functions/info.xml Mon Jun 26 08:11:26 2000
@@ -591,6 +591,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_sapi_name</function> example</title>
+ <programlisting role="php">
+$inter_type = php_sapi_name();
+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.putenv">
    <refnamediv>
     <refname>putenv</refname>
Index: phpdoc/en/functions/misc.xml
diff -u phpdoc/en/functions/misc.xml:1.12 phpdoc/en/functions/misc.xml:1.13
--- phpdoc/en/functions/misc.xml:1.12 Mon Jun 26 07:45:01 2000
+++ phpdoc/en/functions/misc.xml Mon Jun 26 08:11:26 2000
@@ -854,41 +854,6 @@
    </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_sapi_name</function> example</title>
- <programlisting role="php">
-$inter_type = php_sapi_name();
-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>