How to count online users and guest for the last 30 minutes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fpjkaba
    New Member
    • Mar 2009
    • 5

    How to count online users and guest for the last 30 minutes?

    How to count online users and guests for the last 30 minutes on my site?

    I'm using mysql, php and apache for windows.

    Thanks.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    either check the server's logfiles or write a script that is called in every page and collects the data on request.

    Comment

    • fpjkaba
      New Member
      • Mar 2009
      • 5

      #3
      Is it enough that I collect only the IP address and store it in DB? If not what more data should I collect?

      Thanks!

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        for a basic counter this should be enough. anyways, the more data you collect, the better will you statistic be.

        If you're fine with it, you can use one of the countless counters* available. this will save you the trouble of programming it yourself.

        * what a pun.....

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          You're also going to need to store the time the user visits, too..

          Comment

          Working...