I am trying to create a simple php script for counting hits on url listed in my website. a) Collect url + IP Address info b) If url and IP Address exists in database check the visit date c) If the visit date was within 24 hours - Do nothing (but just redirect the visitor to specific url) else add new entry in database + increment the value of counts for the specific url + redirect the visitor to specific url. HITS database fields id | ip_addr | count | url | visit_date Is this the correct logic? or do you think it requires some modification?
I think that would be enough for the application your are trying to create ... I think you should go ahead and create it! Best of luck
if you can make it a wordpress plug-in then lot of people will get benefit. And so do you. Oh ya you might get lot of traffic.