Your Ad Here

Home » PHP Code »

0

Hi, In php there is one predefined variable called $_SERVER, with that only we can get the complete information about server. We can get all server information with the below code. And easily access the information for your coding part.

Once check the below script:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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

How to get complete information about server using php code


You may like these posts

    How to highlight the source code in our php application?Simple Steps to Build a Custom CMS application Using PHPPHP Captcha and reCaptcha options for web forms using javascriptHow to get links from feed using php

 

Leave a Reply