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
If you want your own internal counting system then I would suggest, storing such information related to website in database. And update the record everytime a user browses the website.