Loading, please wait...

A to Z Full Forms and Acronyms

How to print the version of CGI used by the webserver in PHP | PHP program

Feb 28, 2022 PHP, 1383 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);
?>
A to Z Full Forms and Acronyms