alex506 Posted September 4, 2011 Share Posted September 4, 2011 aim: to create a page where after a set number of pageviews/hits (from any ip) it redirects to a set url permanently. (if it's easier with a different language do say) thanks in advance Link to comment https://forums.phpfreaks.com/topic/246422-how-tolimit-number-of-pageviews/ Share on other sites More sharing options...
litebearer Posted September 4, 2011 Share Posted September 4, 2011 rough idea (am sure those more proficient can suggest a better method)... db table - id, ip, hits page 1 get ip check if ip in table - NO - insert ip and hits - YES AND hits<max, increment hits - YES AND hits =>max send to url --- note: what if there are more than one unique user in same ip? Link to comment https://forums.phpfreaks.com/topic/246422-how-tolimit-number-of-pageviews/#findComment-1265434 Share on other sites More sharing options...
alex506 Posted September 4, 2011 Author Share Posted September 4, 2011 more than one user on the same ip is ok. thanks a lot for that. Link to comment https://forums.phpfreaks.com/topic/246422-how-tolimit-number-of-pageviews/#findComment-1265478 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.