Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-29-2009, 01:27 PM
|
#1
|
Member
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329
Rep:
|
Help on how to create a website 'Hit Counter' using seamonkey composer
I want to create a simple visitor counter for a webpage. I am using seamonkey composer. How can i write this myself - and what are the constraints (does it have to be javascript or html)?
Can someone please tell me how to do it because i have not done anything like this before.
thanks
|
|
|
01-30-2009, 09:08 AM
|
#2
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
Seamonkey composer alone cannot do this. You need non-volatile storage of the count on the server, and Seamonkey composer cannot generate this. You need a CGI component that runs on the server.
I guess either this is homework, or you haven't discovered the legions of good arguments that such counters are relatively meaningless anyway.
--- rod.
|
|
|
01-30-2009, 10:00 AM
|
#3
|
Member
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329
Original Poster
Rep:
|
it might be useless - but its a nice touch.
|
|
|
01-30-2009, 10:25 AM
|
#4
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
Useless and meaningless are not the same in this context. I can see where it may be quite useful to count hits, however one cannot accurately count hits by simply counting the number of times an HTTP request is received by a server. In this context, I refer to a 'hit' as someone deliberately clicking on a link or entering the URL in the address bar of a browser or some equivalent. The number of caches and proxies along the way will significantly reduce the number of requests that actually reach your server. The number of requests that reach your server can be seen as a minimum number of hits, although it may also be artificially high if people reload the page at unusual rates. Mainly, don't people nowadays find hit counters displayed on a page a bit dorky? If you really want to collect statistics for your own benefit, it is probably better to use the server log files.
--- rod.
Last edited by theNbomr; 01-30-2009 at 10:47 AM.
|
|
|
All times are GMT -5. The time now is 10:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|