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