What visitor statistics can I collect with PHP?

Discussion in 'PHP' started by peppy, Mar 9, 2011.

  1. #1
    Greetings,

    I am trying to figured out how to get the maximum amount of information on my visitors as possible. What are all the different statistics one can collect from an incoming unique visitor, browsers and computers using PHP?

    This is what I got so far:

    IP Address
    Browser and OS (user agent)
    Language
    Referring URL

    Are there any others?

    Thanks
    Kind regards
     
    peppy, Mar 9, 2011 IP
  2. eleetgeek

    eleetgeek Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Before you proceed, let me introduce you to cyber law!
    1. Make sure you users agree to the TOS and allow you to store their information. Yes, IP is personal information now :)
     
    eleetgeek, Mar 10, 2011 IP
  3. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Cyber law? Cyber ain't no country I never heard of. Any statute you can specifically refer to eleetgeek?

    Peppy, to answer your actual question and not just post undocumented pablum--check out this page of php.net which refers to Server variables:

    http://www.php.net/manual/en/reserved.variables.server.php
     
    plog, Mar 10, 2011 IP
  4. eleetgeek

    eleetgeek Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So you mean, cyber law does not exist?
    Right :)
     
    eleetgeek, Mar 10, 2011 IP
  5. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #5
    So, to my request for more specific information concerning this 'cyber law' so that we may all better understand it, your response is to try put the onus on me to prove it doesn't exist? You sir are a master debator.

    I posted a link so that peppy could learn more about these Server variables I mentioned, it shouldn't be too hard for you to do the same for this 'cyber law'. Right?
     
    plog, Mar 11, 2011 IP