944,156 Members | Top Members by Rank

Ad:
Apr 27th, 2005
0

Creating Hit Counters for a website

Expand Post »
HI!!,
can anybody tell me how to create a hit counter using Javascript.
The hit counter should increment a number stored in a file (on the site) each time a user visits it.

For reference such Hit Counters can be added to Websites built with Microsoft Frontapage (Tools -> Web Components -> Hit Counter).
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Sukuz is offline Offline
5 posts
since Apr 2005
Apr 27th, 2005
0

Re: Creating Hit Counters for a website

Well, With javascript it is going to require you to use cookies. You send the browser a cookie, with the value as the number of visits. Next time they return, read the cookie, increment it, and over-write the cookie with the new value. In order to do something like this SERVER SIDE, you'll need a server side language, such as perl, php, or some other server side programming language.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
May 4th, 2005
0

Re: Creating Hit Counters for a website

Thanks Comatose!!!
But, what I want to know is give me some code to implement this in SERVER side using PHP, PERL,etc and how to apply it.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Sukuz is offline Offline
5 posts
since Apr 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Accessing DOM Objects
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Urgent.....Dynamic Changes....





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC