Re: Most viewed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 17, 2008 at 12:07 PM, Philip Thompson
<philthathril@xxxxxxxxx> wrote:
[snip]
>  If you want to take it a step further and only record a *click* if a person
> hasn't clicked this article before, you have several options. You can save a
> cookie on their computer saying they've clicked that article - of course
> they can delete the cookie, which may skew the count. Or you can save their
> IP address in a database (or file, if you want to choose that method) - only
> increment if that IP address hasn't clicked that article before. And of
> course, it's also very possible that their IP address can change. However,
> it should work pretty well.

Or they could share an IP with a few hundred other people so that all
of them combined only get counted one time.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux