FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to save the visitors ip addresses
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how to save the visitors ip addresses [message #180887 is a reply to message #180883] Mon, 25 March 2013 12:28 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
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(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Is PHP good for outsourcing?
Next Topic: PHP: convert a page to pdf
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 07:45:23 GMT 2024

Total time taken to generate the page: 0.06049 seconds