Re: [PHP] Not counting my own page visits

2013-03-05 Thread Angela Barone
On Mar 4, 2013, at 3:49 PM, David Robley wrote: > Misunderstanding what $cookie contains? It is a boolean, i.e. it will be > true or false depending on whether the cookie was set or not. To echo the > contents of a cookie, you need to use the cookie name, viz > > "; ?> You're right - I

Re: [PHP] Not counting my own page visits

2013-03-04 Thread tamouse mailing lists
On Mon, Mar 4, 2013 at 5:58 PM, Ashley Sheridan wrote: > On Tue, 2013-03-05 at 10:19 +1030, David Robley wrote: > >> Angela Barone wrote: >> >> > On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: >> >> You can manually write a cookie on your machine, or use a special script >> >> that only you v

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
On Tue, 2013-03-05 at 10:19 +1030, David Robley wrote: > Angela Barone wrote: > > > On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: > >> You can manually write a cookie on your machine, or use a special script > >> that only you visit that contains a setcookie() call (it only need be set > >>

Re: [PHP] Not counting my own page visits

2013-03-04 Thread David Robley
Angela Barone wrote: > On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: >> You can manually write a cookie on your machine, or use a special script >> that only you visit that contains a setcookie() call (it only need be set >> once). From there on, you can check the $_COOKIES super global for

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: > You can manually write a cookie on your machine, or use a special script that > only you visit that contains a setcookie() call (it only need be set once). > From there on, you can check the $_COOKIES super global for the presence of > your c

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
On Mon, 2013-03-04 at 10:15 -0800, Angela Barone wrote: > On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote: > > set a cookie with a long life and check for that, discounting visits when > > either are true > > Hi Ash, > > I don't know anything about cookies. It sounds complicated to me.

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote: > set a cookie with a long life and check for that, discounting visits when > either are true Hi Ash, I don't know anything about cookies. It sounds complicated to me. Is there a simple way to set one? Thanks, Angela -- PHP General M

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
On Mar 4, 2013, at 9:52 AM, Tommy Pham wrote: > What about ignoring $_SERVER['REMOTE_ADDR'] or $_SERVER['REMOTE_HOST'] > where that matches your public IP or FQDN? Hi Tommy, I am checking for $_SERVER['REMOTE_ADDR'] but how would I check that against mine? I don't have a static IP. Tha

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
Angela Barone 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 visi

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Tommy Pham
On Mon, Mar 4, 2013 at 9:47 AM, Angela Barone 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

[PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
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 th