FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Keep track of page-access
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Keep track of page-access [message #172943 is a reply to message #172930] Sat, 12 March 2011 18:36 Go to previous messageGo to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma:
Senior Member
In news:ilf2n9$9fl$1(at)news(dot)albasani(dot)net,
sl@exabyte <ecp_gen(at)my-rialto(dot)com> typed:
::: But my choice would be a dozen lines of PHP and a MySQL
::: database table. For "just a counter" you could simply
::: increment a number (field) in a one-row table, or you
::: could add and store a new row for each page hit,
::: including further information such as visitor's IP
::: address, browser UA string, etc.
::
:: Thanks folks.
::
:: I have a better idea now: server log or PHP, AJAX not
:: necessary.

I've used PHP's simple counters and sessions to persist the data from page
to page and just increment the counter on each access. Works well IMO.

HTH,

Twayne`
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Ritual Abuse
Next Topic: Backslash before function name in PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 18:41:03 GMT 2024

Total time taken to generate the page: 0.03975 seconds