PHP

How to print the version of the server software in PHP | PHP program

How to print the version of the server software in PHP | PHP program

How to print the version of the server software in PHP | PHP program

Here, we will use $_SERVER['SERVER_SOFTWARE'] superglobal to get the version of server software and then print that on the webpage.

<?php



$ServerSoftware = $_SERVER['SERVER_SOFTWARE'];

printf("Server Software: %s<br>", $ServerSoftware);
?>
TutorialsLink Curator

This is an official account managed by the team TutorialsLink Community