Jump to content

$_SERVER['REMOTE_ADDR'] as hit counter?


rondog

Recommended Posts

I am logging the user's IP address into a database to act as a hit counter. So far I have 23 views as the site just came up a day ago. But in the statistics on 1and1.com (the hosting company) it says their was 39 unique visitors.

 

Now my question is, say there was 2 people in the same building and they both have the same IP it will only see that as 1 user which probably happened. Is their a better way to go about adding that specific computers info that cant be erased?

Link to comment
https://forums.phpfreaks.com/topic/69773-_serverremote_addr-as-hit-counter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.