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
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
Share on other sites

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.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.