Hi,
How do i find out the IP address of the user visiting my site? I want to be able to check for the same IP's returning to the site and present a personal greeting.
Thanks, Charkus
<?php
$ip = $REMOTE_ADDR; print("Welcome $ip!");
?>
$HTTP_SERVER_VARS['REMOTE_ADDR']
to be exact...
and from 4.1.x+ it will be
$_SERVER['REMOTE_ADDR']
Many ip addresses are assigned dynamically. So a return visitor might have a different one, and the same one might be someone else.