[Mediawiki-l] mod_rewrite again

Rick DeNatale rick.denatale at gmail.com
Wed Mar 23 22:20:01 UTC 2005


On Wed, 23 Mar 2005 17:18:21 -0500, Rick DeNatale
<rick.denatale at gmail.com> wrote:
> On Wed, 23 Mar 2005 13:10:32 -0800, Brion Vibber <brion at pobox.com> wrote:
> > Rick DeNatale wrote:

> <?php
> $sapi_type = php_sapi_name();
> if (substr($sapi_type, 0, 3) == 'cgi') {
>    echo "You are using CGI PHP\n";
> } else {
>    echo "You are not using CGI PHP\n";
> }
> ?>

Oops, that's the script I used as an example, the one I wrote just
dumped out the raw output of php_sapi_name()



More information about the MediaWiki-l mailing list