www.webdeveloper.com
Results 1 to 2 of 2

Thread: Creating a statistic graph

  1. #1
    Join Date
    Mar 2011
    Posts
    2

    Creating a statistic graph

    I'm trying to create a custom made class that will track the hits, unique visitors, IPs of visitors, referrers, and the landing page. I'm mostly utilizing the $_SERVER global however in the last two hours I've gotten 112 hits and 41 unique visitors. This part is correct, however, I see that some people don't have a referrer and a their landing page is nested deep or a blog article. You can check my statistics below:

    http://ewebsiteservices.com/custom-stats/

    I'm wondering how people can land on a blog article or service page without having a referrer. There's no way they can have it bookmarked so what's the other reason?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,921
    The client is not required to send the referrer header, so there's never any guarantee you'll receive one regardless of the situation. (Browser privacy settings, using proxy hosts, automated scripts using cURL, etc. might be just a few reasons.)
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles