Re: Not counting my own page visits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 4, 2013 at 9:47 AM, Angela Barone
<angela@xxxxxxxxxxxxxxxxxxxx> 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

What about ignoring $_SERVER['REMOTE_ADDR'] or $_SERVER['REMOTE_HOST']
where that matches your public IP or FQDN?

http://php.net/manual/en/reserved.variables.server.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux