How to print the version of CGI used by the webserver in PHP | PHP program
Feb 28, 2022
PHP,
1750 Views
How to print the version of CGI used by the webserver in PHP | PHP program
How to print the version of CGI used by the webserver in PHP | PHP program
We will use $_SERVER['GATEWAY_INTERFACE'] superglobal to get the version of Common Gateway Interface (CGI) used by the webserver.
<?php
$version = $_SERVER['GATEWAY_INTERFACE'];
printf("CGI Version: %s<br>", $version);
?>