You're going to need to log the ip of every visitor into a table, and compare that with every page hit, then use another table for recording page hit history or however you want to do it. If you have any problems, let me know and I'll be able to help out.
« Reply to How would I make this? (a special counter)