code:
<?php
echo '<pre>';
print_r($_SERVER);
?>
Don't blame my HTML
This will show all server and connection related env vars. If you only want to show some of them do as many
echo $_SERVER['
NAME_OF_KEY']."\n";
as you like instead of the print_r().