List of environment system variables PHP
The example shows how to display PHP environment variables
<?php
$system_variables = array( 'PHP_SELF',
'SCRIPT_NAME',
'SERVER_NAME',
'SERVER_SOFTWARE',
'SERVER_PROTOCOL',
'SERVER_PORT',
'HTTP_USER_AGENT',
'REMOTE_ADDR'
);
foreach( $system_variables as $sv )
echo $sv . ": " . $_SERVER[$sv] . "<br />";
?>