View Single Post
Old 11-05-2003, 01:57 AM  
4Pics
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Posts: 7,952
More php help needed :)

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
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote