On Wed, 23 Mar 2005 17:18:21 -0500, Rick DeNatale rick.denatale@gmail.com wrote:
On Wed, 23 Mar 2005 13:10:32 -0800, Brion Vibber brion@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()