i am trying to log the users ip when they visit one of my sites
the setup is as follows:
i have one page on a site 1 that has the code:
Code: Select all
<?PHP
$ip=$_SERVER['REMOTE_ADDR'];
echo $ip;
?>
Code: Select all
<?PHP
include('http://site1.com/gettest.php');
?>
Any help would be great thanks