Results 1 to 8 of 8

Thread: [RESOLVED] visitor counter

  1. #1

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Resolved [RESOLVED] visitor counter

    how can i make a visitor counter that excludes me from the counting and only counts once if the same person goes bak and forth between pages for as long as they dont close the site?

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: visitor counter

    If your ip is always the same, then you can add it to an excludes list.

    For the visitorcounter, have it only add on the first page and on the other pages just grab its value

  3. #3

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: visitor counter

    ok how do i check if my ip is the same? and i woudl have it grab values of the first for the others but i want each individual page to have its own individual counter so i can see how far into the site people go.

  4. #4
    Addicted Member BIOSTALL's Avatar
    Join Date
    Apr 2005
    Location
    Northampton, UK
    Posts
    180

    Re: visitor counter

    Look into sessions my good man

    BIOSTALL

  5. #5
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    Re: visitor counter

    ninja, first, take a look at this http://us2.php.net/variables.predefined

    if you use the $_SERVER superglobal, you can get the remote client IP by doing
    Code:
    <?
    echo $_SERVER['REMOTE_ADDR'];
    ?>
    that will get your IP also if you happen to view the page. what i think you should do is store a cookie on your computer and have your script check for the cookie to see if it exists. if it does, have your code not count you

  6. #6

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: visitor counter

    cool i wanna figure out the code on my own but how would i make a cookie?
    Last edited by ninjanutz; Jul 26th, 2005 at 01:26 AM.

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: visitor counter



    Has someone helped you? Then you can Rate their helpful post.

  8. #8

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: visitor counter

    thanx manavo

Posting Permissions

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



Click Here to Expand Forum to Full Width