Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8823
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: how to save the visitors ip addresses |
| Date | 2013-03-25 08:28 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <kipfqa$ib5$1@dont-email.me> (permalink) |
| References | <dab1f650-6617-41d9-b9e2-dd1afa9d5eb4@googlegroups.com> |
On 3/25/2013 4:44 AM, nag wrote: > Hi, > > I have a hit counter and visitors who are online in my webpage. I want to save the visitors IP addresses permanently (I will remove it manually). How can I code this? I am using a download file called visitors.php. I tried increasing the sessionTime. > > Here it is. > > <snip code> > > Thank you. > > You can't track visitors by IP. A visitor's IP can change at any time, and it is very possible to have multiple visitors from the same IP address (i.e. even at my home we have 5 computers but only 1 IP address). An IP is valid for one conversation (i.e. a page request with all of it's images) but nothing more. If you're having problems with code you download, the first thing to do is ask the author of the code. And don't expect to be able to just download code and insert it into your page(s). With ANY programming language, you need to understand the code to use it properly. This is especially true with PHP. Nothing in this code is very complicated. Have you even tried to understand it? But if you insist on going down this dead-end path, you need to tell us WHY it doesn't work. And BTW - if I WERE to insist on trying to do this (which I wouldn't), I'd use a SQL database to store the information. Much better. What you REALLY should do is get a decent log analyzer for your web server logs. It will tell you what you're looking for and a lot more. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to save the visitors ip addresses nag <visitnag@gmail.com> - 2013-03-25 01:44 -0700
Re: how to save the visitors ip addresses "Olaf S." <thesys@gmx.de> - 2013-03-25 12:11 +0100
Re: how to save the visitors ip addresses Salvatore <sal@yojimbo.hack.invalid> - 2013-03-25 11:13 +0000
Re: how to save the visitors ip addresses nag <visitnag@gmail.com> - 2013-03-25 04:36 -0700
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 08:28 -0400
Re: how to save the visitors ip addresses Tim Streater <timstreater@greenbee.net> - 2013-03-25 12:42 +0000
Re: how to save the visitors ip addresses Scott Johnson <noonehome@chalupasworld.com> - 2013-03-25 06:02 -0700
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-25 13:09 +0000
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 09:26 -0400
Re: how to save the visitors ip addresses Scott Johnson <noonehome@chalupasworld.com> - 2013-03-25 09:55 -0700
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-26 01:44 +0000
Re: how to save the visitors ip addresses Tim Streater <timstreater@greenbee.net> - 2013-03-25 13:34 +0000
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-25 14:54 +0000
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 13:24 -0400
Re: how to save the visitors ip addresses Scott Johnson <noonehome@chalupasworld.com> - 2013-03-25 10:03 -0700
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-26 01:57 +0000
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 13:25 -0400
Re: how to save the visitors ip addresses Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-25 19:15 +0100
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 09:22 -0400
Re: how to save the visitors ip addresses Richard Damon <Richard@Damon-Family.org> - 2013-03-27 01:29 -0400
Re: how to save the visitors ip addresses richard <noreply@example.com> - 2013-03-25 19:39 -0400
Re: how to save the visitors ip addresses "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-03-26 00:21 +0000
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 20:55 -0400
Re: how to save the visitors ip addresses Paul Herber <paul@pherber.com> - 2013-03-26 01:01 +0000
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-26 02:10 +0000
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-26 02:01 +0000
Re: how to save the visitors ip addresses "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-03-26 03:10 +0000
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-26 15:18 +0000
Re: how to save the visitors ip addresses Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-03-25 22:39 -0700
Re: how to save the visitors ip addresses Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-03-25 18:31 -0700
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 21:47 -0400
Re: how to save the visitors ip addresses Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-03-25 19:34 -0700
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 23:27 -0400
Re: how to save the visitors ip addresses Tim Streater <timstreater@greenbee.net> - 2013-03-26 09:10 +0000
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-26 06:16 -0400
Re: how to save the visitors ip addresses Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-26 11:42 +0100
Re: how to save the visitors ip addresses Tim Streater <timstreater@greenbee.net> - 2013-03-26 11:47 +0000
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-25 23:38 -0400
Re: how to save the visitors ip addresses Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-03-25 21:13 -0700
Re: how to save the visitors ip addresses Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-26 06:16 -0400
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-26 15:10 +0000
Re: how to save the visitors ip addresses The Natural Philosopher <tnp@invalid.invalid> - 2013-03-26 01:43 +0000
csiph-web