I have the following code to count visitors on my PHP site. It works fine on my local development machine using WampServer but when I uploaded my files to my hosting account for
Hmm, I'm not sure that reading the session files in the session dir is the best method.
Why not have a write on a db table for every page load. Then have a read that counts the number of unique users in the last x minutes?
It sounds db intensive but unless your site is ultra-busy, I can't see a problem.