<!DOCTYPE html>
<html>
<head>
<title>The PHP $_SERVER array</title>
</head>
<body bgcolor="lightyellow">
<h1><center>The PHP $_SERVER array</center></h1>
<?php
/****************************************************************************************
* Loop though the $_SERVER array
****************************************************************************************/
echo "<table border=1> \n";
echo "<tr bgcolor=cccccc><th>KEY<th align=left>VALUE</tr> \n";
ksort($_SERVER); //sort the array by key
foreach($_SERVER as $key => $value)
echo "<tr><td>", $key, "<td>", $value, "</tr> \n";
echo '</table>';
?>
</body>
</html>