$sapi_type = php_sapi_name(); if ($sapi_type == "cgi") print "You are using CGI PHP\n"; else print "You are not using CGI PHP\n";
?php $inter_type = php_sapi_name(); if ($inter_type == "cgi") print "Vous utilisez CGI PHP\n"; else print "Vous n'utilisez pas CGI PHP\n";?