Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11443
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: excluding an ip from count |
| Date | 2013-10-16 15:40 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <l3n4l6$fjf$1@dont-email.me> (permalink) |
| References | <1ncmt5thzunsw.1ngqxp7l0ckls.dlg@40tude.net> <8oz7u.2157$vg7.1856@fx23.iad> <1le1qhen20jek$.hmw9rte8r5ck.dlg@40tude.net> |
On 10/16/2013 12:38 PM, richard wrote:
> On Wed, 16 Oct 2013 09:44:51 -0700, Tobiah wrote:
>
>> On 10/15/2013 04:38 PM, richard wrote:
>>> What are some ways of not countng hits from one IP?
>>> I now have a counter for my songs and want to exclude my IP from being
>>> included in the hit counter.
>>>
>>
>> Check out the values in the $_SERVER variable in the manual:
>>
>> 'REMOTE_ADDR'
>> The IP address from which the user is viewing the current page.
>>
>> so,
>>
>> if($_SERVER['REMOTE_ADDR'] != $my_ip_address){
>> increment_count();
>> }
>
> That could work. thanks.
>
Unless you have a shared IP.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
excluding an ip from count richard <noreply@example.com> - 2013-10-15 19:38 -0400
Re: excluding an ip from count "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-10-16 00:17 +0000
Re: excluding an ip from count Tobiah <toby@tobiah.org> - 2013-10-16 09:44 -0700
Re: excluding an ip from count richard <noreply@example.com> - 2013-10-16 15:38 -0400
Re: excluding an ip from count Scott Johnson <noonehome@chalupasworld.com> - 2013-10-16 15:40 -0700
Re: excluding an ip from count Tobiah <toby@tobiah.org> - 2013-10-18 11:29 -0700
Re: excluding an ip from count Scott Johnson <noonehome@chalupasworld.com> - 2013-10-18 16:14 -0700
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-19 08:06 -0700
Re: excluding an ip from count Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-19 11:34 -0400
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-19 23:23 +0000
Re: excluding an ip from count richard <noreply@example.com> - 2013-10-19 19:52 -0400
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-19 22:31 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-19 22:24 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 09:13 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 06:52 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 10:32 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 09:41 -0700
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-20 18:23 +0000
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 21:04 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 22:56 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-21 03:32 -0400
Re: excluding an ip from count Arno Welzel <usenet@arnowelzel.de> - 2013-10-21 11:54 +0200
Re: excluding an ip from count Tim Streater <timstreater@greenbee.net> - 2013-10-21 11:06 +0100
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-21 08:05 -0400
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-20 18:14 +0000
Re: excluding an ip from count Tim Streater <timstreater@greenbee.net> - 2013-10-20 22:24 +0100
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-21 18:30 +0000
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-21 18:34 +0000
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-19 23:02 -0700
Re: excluding an ip from count Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-20 10:12 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 09:43 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 21:05 -0400
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-20 18:07 +0000
Re: excluding an ip from count Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-20 10:08 -0400
Re: excluding an ip from count The Natural Philosopher <tnp@invalid.invalid> - 2013-10-19 18:44 +0100
Re: excluding an ip from count Richard Yates <richard@yatesguitar.com> - 2013-10-19 14:50 -0700
Re: excluding an ip from count The Natural Philosopher <tnp@invalid.invalid> - 2013-10-19 23:37 +0100
Re: excluding an ip from count Richard Yates <richard@yatesguitar.com> - 2013-10-19 14:52 -0700
Re: excluding an ip from count Scott Johnson <noonehome@chalupasworld.com> - 2013-10-20 11:37 -0700
Re: excluding an ip from count Arno Welzel <usenet@arnowelzel.de> - 2013-10-20 16:56 +0200
csiph-web