Re: [PHP] Not counting my own page visits

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <[email protected]>

Angela Barone <[email protected]> wrote:

>Hello,
>
>	I have a script that counts hits to all the pages in my site and
>emails me a report nightly.  However, it also counts my visits to my
>site, and when I'm coding, I'm hitting a lot of my pages, repeatedly. 
>I'd like to find a way to not count my page visits.
>
>	At first, I thought about adding a parameter to each URL and parsing
>that in the script, but that would get old real fast, and also, I may
>forget to add it each time.  Is there a way to tell the script to
>ignore my visits?
>
>Thank you,
>Angela
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

You could do it by checking for your ip address if you have a fixed one, or set a cookie with a long life and check for that, discounting visits when either are true 
Thanks,
Ash
http://www.ashleysheridan.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.