Posted by: Anil Kumar Panigrahi in: ● March 22, 2010
Hi, In php there is one predefined variable called $_SERVER, with that only we can get the complete information about server.
Once check the below script:
<?php
echo “<table border = ‘2′ style=’color:#ffffff’>”;
$i = 0;
foreach($_SERVER as $key=>$value){
if($i%2 == 0) {
echo “<tr bgcolor=’#993300′>”;
} else {
echo “<tr bgcolor=’#0099FF’>”;
}
echo “<td>”;
echo $key;
echo “</td>”;
echo “<td>”;
echo $value;
echo “</td>”;
echo “</tr>”;
$i++;
}
echo “</table>”;
?>

How to get complete information about server using php code
Comments