|
-
Jul 20th, 2005, 11:39 PM
#1
Thread Starter
Hyperactive Member
[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?
-
Jul 21st, 2005, 12:30 AM
#2
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
-
Jul 21st, 2005, 12:37 AM
#3
Thread Starter
Hyperactive Member
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.
-
Jul 24th, 2005, 11:03 AM
#4
Addicted Member
Re: visitor counter
Look into sessions my good man
BIOSTALL
-
Jul 25th, 2005, 02:10 AM
#5
Fanatic Member
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
-
Jul 25th, 2005, 09:41 PM
#6
Thread Starter
Hyperactive Member
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.
-
Jul 25th, 2005, 10:07 PM
#7
-
Jul 26th, 2005, 01:26 AM
#8
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|