PHP

How to print the server protocol in PHP | PHP program

How to print the server protocol in PHP | PHP program

How to print the server protocol in PHP | PHP program

We will use $_SERVER['SERVER_PROTOCOL'] superglobal to get the server protocol and then print that on the webpage.

<?php



$ServerProtocol = $_SERVER['SERVER_PROTOCOL'];

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

This is an official account managed by the team TutorialsLink Community