I want to log clicks on a exit console as such
http://www.blah.com/out.php?id=1
http://www.blah.com/out.php?id=2
http://www.blah.com/out.php?id=3
http://www.blah.com/out.php?id=4
http://www.blah.com/out.php?id=5
The 2 ways I can log hits are either use cookies, or log the ip address and if its not used in last 1-24hrs then count it as a unique.
If I am using cookies, how do I store it so I know what links are unique for them the easiest way?
Like
<?
if (!isset($_COOKIE['$id']) ) {
add click for id
setcookieforid
}
?>
Is there a short way to store the id's? or will the cookie file be huge if I have like 500 id's they could click?
Thanks