Donate SIGN UP

Website hit counter

Avatar Image
NickleArse | 09:46 Wed 07th May 2003 | Technology
5 Answers
How can I add a hit counter to a web page? Is it possible to use code or will I need software?
Gravatar

Answers

1 to 5 of 5rss feed

Best Answer

No best answer has yet been selected by NickleArse. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Register with a site like http://www.statcounter.com then they will provide you with cut and paste code for your website
A web counter requires the ability to write to a file to store the number of hits. This can be done by server side scripting and you may have the functionality on your own webspace. If not, you can link to a third party who can, and they will assign you a link to embed that is unique to your site and therefore tracks you, for example
The target=_blank>http://www.webcounter.com/counter.php?uid=1234


The
1234 bit will tell their script which user the count is for, and the script will then increment the count by one and return either some text, or an image comprising the digits. This second option is what rekstout recommends.
If you feel up to it and you have PHP on your webspace, you can get far more powerful results writing your own script, and to be fair, it's really rather easy in PHP. If oyu need help, just post.
i would suggest you register with alxnet.com its absolutly free and you can get other things like forums, guestbooks and polls!! i find it simple to use so anyone can use it!
Question Author
Thanks for the help guys
-- answer removed --

1 to 5 of 5rss feed

Do you know the answer?

Website hit counter

Answer Question >>