PHP script to display GATEWAY INTERFACE, Server Address, Server Name, server software, server protocol ||EasyCoding45

 In this Tutorial, we are going to learn how we can  display GATEWAY INTERFACE, Server Address, Server Name, server software, server protocol using PHP.


Program ::--


<?php

echo "<center><table border=1>

<tr>

<th>GateWay Interface</th>";

echo"<td>";

echo $_SERVER['GATEWAY_INTERFACE'];

echo"</td></tr>";

echo "<tr>

<th>Server Address</th>";

echo"<td>";

echo $_SERVER['SERVER_ADDR'];

echo"</td></tr>";

echo "<tr>

<th>Server Name</th>";

echo"<td>";

echo $_SERVER['SERVER_NAME'];

echo"</td></tr>";

echo "<tr>

<th>Server Software</th>";

echo"<td>";

echo $_SERVER['SERVER_SOFTWARE'];

echo"</td></tr>";

echo "<tr>

<th>Server Protocol</th>";

echo"<td>";

echo $_SERVER['SERVER_PROTOCOL'];

echo"</td></tr>";

?>

Output ::--

                    



                            Thank You 💚                            

Comments