Linux Need help from experts of PHP………???

Discussion in 'Software' started by jameswatt, 24 Sep 2005.

  1. jameswatt

    jameswatt Banned

    Joined:
    24 Sep 2005
    Posts:
    3
    Likes Received:
    0
    I have little probs in my current web application of PHP .The probs is that I want to add one functionality like how many users have visited the site from them how many r unique visitors and how many r first time visitors and wants to show that data in bar chart. The probs is how to achieve that functionality can any expert help me in this concern………………?
     
  2. Joel

    Joel What's a Dremel?

    Joined:
    9 May 2002
    Posts:
    386
    Likes Received:
    0
    Why not install something like webalizer, it'll do it all for you. :)

    Joel
     
  3. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    Processing raw apache logs won't help to plot the number of unique visitors as far as I'm aware.

    You'll need to introduce session handling into application, storing session ids, number of visits, etc in your DB and build a reporting script to produce a pretty graph :)

    Google jpgraph for help with producing the graph.
     
  4. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    Oh Yes. def the best option!

    http://www.mrunix.net/webalizer/
     
  5. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Not true - as JK said and Atomic backed up, webalizer or any other raw log parser will do this (and be a whole load more reliable too).
     
  6. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    Oh, okay then :)

    However, say a user connects to internet, visits bit-tech, server logs ip address, user disconnects.
    Same user reconnects and gets a different ip, visits bit-tech, server log different ip address, user disconnects.

    Now there's only been one unique visitor, but two have been logged? Or am I missing something :confused:
     
  7. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    Yes true, but unless your setting cookies and tracking from that there isnt really a simple way to get around it.
     
  8. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    That what I thought, but JonnyKryptonite and Rich suggest otherwise :confused:
     
  9. jameswatt

    jameswatt Banned

    Joined:
    24 Sep 2005
    Posts:
    3
    Likes Received:
    0
    Thanks for providing the sugesstions.............

    I real appriciate the suggestion from all guys....

    thank you
     
  10. jameswatt

    jameswatt Banned

    Joined:
    24 Sep 2005
    Posts:
    3
    Likes Received:
    0
    LOL.........
     
  11. logan

    logan flashback!

    Joined:
    17 Aug 2002
    Posts:
    873
    Likes Received:
    1
    Can't believe even rtt replied to this thread.... :D

    He's a spammer - check the bargain bin forum. Fairly unique approach in this thread tho. :thumb:
     
Tags:

Share This Page