try this:
<?
$address = getenv("REMOTE_ADDR");
echo $address;
// Or simply use a Superglobal ($_SERVER or $_ENV)
$ip = $_SERVER['REMOTE_ADDR'];
?>
The function 'getenv' does not work if your Server API is ASAPI (IIS).
So, try to don't use getenv('REMOTE_ADDR'), but $_SERVER["REMOTE_ADDR"].
Last edited by Shanti C; Sep 25th, 2008 at 3:19 am.
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Offline 1,641 posts
since Jul 2008