Graybeard
Well-Known Member
Caveat: this will only work on a desktop or a home wi-fi for mobile.
Wireless roaming off of the home/business router will not have the static IP needed.
added ** don't forget to use your own unique big number $seed
this outputs:
28263715272
28,263,715,272
Database that
INET_ATON(208.199.84.123), cid, affiliate, geo other
Then you have a lookup table for return visits without a cookie being used
Wireless roaming off of the home/business router will not have the static IP needed.
PHP:
<?php
//$ip = ($_SERVER['REMOTE_ADDR']);
$ip = '208.199.84.123';
$seed= 99000000000000000000;
$ipv4address = sprintf("%u", ip2long($ip));
$cid=ceil($seed/$ipv4address);
echo "$cid";
this outputs:
28263715272
28,263,715,272
Database that
INET_ATON(208.199.84.123), cid, affiliate, geo other
Then you have a lookup table for return visits without a cookie being used
Last edited: