cvs: phpdoc /en/reference/info/functions php-sapi-name.xml

From: Date: Wed, 04 Aug 2004 08:42:06 +0000
Subject: cvs: phpdoc /en/reference/info/functions php-sapi-name.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969362594@lists.php.net to get a copy of this message
aidan Wed Aug 4 04:42:06 2004 EDT Modified files: /phpdoc/en/reference/info/functions php-sapi-name.xml Log: Ensured example picked up more complicated cgi return values, such as cgi-fgdr http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/php-sapi-name.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/info/functions/php-sapi-name.xml diff -u phpdoc/en/reference/info/functions/php-sapi-name.xml:1.7 phpdoc/en/reference/info/functions/php-sapi-name.xml:1.8 --- phpdoc/en/reference/info/functions/php-sapi-name.xml:1.7 Thu Dec 18 06:47:08 2003 +++ phpdoc/en/reference/info/functions/php-sapi-name.xml Wed Aug 4 04:42:05 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/info.xml, last change in rev 1.25 --> <refentry id="function.php-sapi-name"> <refnamediv> @@ -27,7 +27,7 @@ <![CDATA[ <?php $sapi_type = php_sapi_name(); -if ($sapi_type == "cgi") { +if (substr($sapi_type, 0, 3) == 'cgi') { echo "You are using CGI PHP\n"; } else { echo "You are not using CGI PHP\n";

« previous php.doc (#969362594) next »