LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 01-29-2009, 01:27 PM   #1
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
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
 
Old 01-30-2009, 09:08 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
Old 01-30-2009, 10:00 AM   #3
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Original Poster
Rep: Reputation: Disabled
it might be useless - but its a nice touch.
 
Old 01-30-2009, 10:25 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SeaMonkey 1.0.6 and SeaMonkey 1.1 Beta Released LXer Syndicated Linux News 0 11-09-2006 02:33 PM
Apache Server and Hit Counter k1ll3r_x Linux - Software 4 07-05-2005 06:58 AM
hit counter dragon Programming 6 07-04-2005 10:06 PM
php hit counter problems ukch Programming 9 12-03-2003 03:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration