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

Jun 24, 2021 PHP, 221 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