Jump to content

Visitor counter


ram4nd

Recommended Posts

Hello,

 

I am thinking about making visitor counter, and that is per each page. Right now I save plus 1 visit every page load so even on refresh it increases the visitors. I want to make as close to unique as possible, but using as few resources as possible. I am waiting on your ideas.

 

What not to mention:

  • Save all ip's for every page. That would be close to unique(close because people have dynamic IPs), but it takes loads of resources.
  • Use outsourcing.
  • Increase counter per page load. OMG that's what i am using now and i what to get rid of it.

 

It's for the website in my signature, just worth mentioning i guess. I am making new counter system for tutorials.

Link to comment
https://forums.phpfreaks.com/topic/200644-visitor-counter/
Share on other sites

I know what you wrote, people that try do find out technical approaches search for similar works to what they need to accomplish and learn from them.

 

if you want I can give you the techinical approach in words that that tutorial offers, but it's a critical skill for a programmer to have.

Link to comment
https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1053534
Share on other sites

N

yes i need a technical approach in words, no tutorial is going to help me, your tutorial doesn't work for me, cause its user based if i am not wrong. Let me guess your approach is that ip's are reset every once in a while.

 

No that tutorial is not user-based, it logs by ip, and once an ip has not been logged on for more than 5 minutes(or whatever) then it removes it from the database, meaning that only ip's that have been activate in the last 5 minutes are marked as "online users".

Link to comment
https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1054660
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.