|
| LEARNING MORE ABOUT THE $_SERVER ARRAY IN PHP
PHP automatically stores some useful and important information in the $_SERVER super global array. To see the values of all elements of this array, use a foreach loop as follows:
foreach($_SERVER as $key => $value)
{
echo $key." ".$value."<br>";
}
This will output a whole list of useful server information. You can singly extract the most important as below. Click the links to learn more about these variables:
|
|