That's it (you forgot to add a . after www in the above code).
If it doesn't count it's probably because the link is cached in your browser, try clearing cache again, close all browser windows and test the code above.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here
even it gives me error (my own wrong setup)
the counter was counting every visitor correctly as my code was inside the <head>
With your code inside the <body> only, the counter will work just whenever someone clicks on that link from the other page only
If someone came directly to that page (let us say google .. etc)
the counter will not run then!!! as the visitor did not came by clicking the link to have the counter run !!!!
I have installed the hit counter
but wanted the same admin page as the click counter to watch all pages at once and no need for the counter to be displayed on the pages.
Well just because I offer free scripts doesn't mean I am a free programmer... If I would say yes to every wish like yours I could be sitting behind my PC programming for free 24 hours per day.
Try using text hit counter and perhaps delete line
echo 'document.write(\''.$count.'\');';
if you don't want to display the count to visitors.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here