ram4nd Posted May 4, 2010 Share Posted May 4, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/200644-visitor-counter/ Share on other sites More sharing options...
shedokan Posted May 4, 2010 Share Posted May 4, 2010 There are already some simple tutorials that show you how to do it, eg: http://www.spoono.com/php/tutorials/tutorial.php?id=16 Quote Link to comment https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1053208 Share on other sites More sharing options...
ram4nd Posted May 4, 2010 Author Share Posted May 4, 2010 to do what? I am looking a theoretical approach. Read what I wrote. The forum is about "Programming theory" right? Quote Link to comment https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1053240 Share on other sites More sharing options...
shedokan Posted May 5, 2010 Share Posted May 5, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1053534 Share on other sites More sharing options...
ram4nd Posted May 5, 2010 Author Share Posted May 5, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1053764 Share on other sites More sharing options...
shedokan Posted May 7, 2010 Share Posted May 7, 2010 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". Quote Link to comment https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1054660 Share on other sites More sharing options...
ram4nd Posted May 8, 2010 Author Share Posted May 8, 2010 So i guessed right, it's not a bad idea Quote Link to comment https://forums.phpfreaks.com/topic/200644-visitor-counter/#findComment-1054948 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.