http://ru.php.net/manual/en/reserved.variables.server.phpIf you are serving from behind a proxy server, you will almost certainly save time by looking at what these $_SERVER variables do on your machine behind the proxy.
$_SERVER['HTTP_X_FORWARDED_FOR'] in place of $_SERVER['REMOTE_ADDR']
$_SERVER['HTTP_X_FORWARDED_HOST'] and
$_SERVER['HTTP_X_FORWARDED_SERVER'] in place of (at least in our case,) $_SERVER['SERVER_NAME']
а<?php
$array = get_defined_vars();
foreach ($array as $key=>$value)
var_dump($key.':'.$value)
var_dump(get_defined_vars());