473,320 Members | 1,825 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

script for counting the no. of enters on the site

Hello,
I need a script for counting the no. of enters on my site, please.

I need a check that for the same user in the same day - if the user enter
several times, it is count once
(or something like this - I need that the script will accurate as possible).

On the server side I have the .NET server.

Thanks :)
Jul 20 '05 #1
8 1620
"Mr. x" wrote on 15/11/2003:
Hello,
I need a script for counting the no. of enters on my site, please.

I need a check that for the same user in the same day - if the user enter several times, it is count once
(or something like this - I need that the script will accurate as possible).
On the server side I have the .NET server.


Do this server-side. You won't be able to store the results with
JavaScript.

Alternatively, just use a free web statistics service.

Mike

--
Michael Winter
M.Winter@[no-spam]blueyonder.co.uk (remove [no-spam] to reply)
Jul 20 '05 #2
Mr. x wrote on 15 nov 2003 in comp.lang.javascript:
I need a check that for the same user in the same day - if the user enter
several times, it is count once
Even serverside, you cannot detect a user reliably, unless you can set a
cookie on his machine. Clientside, there is no way to store the count of
the other users.
On the server side I have the .NET server.


Better ask a dotnet group.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3
JRS: In article <Xn********************@194.109.133.29>, seen in
news:comp.lang.javascript, Evertjan. <ex**************@interxnl.net>
posted at Sat, 15 Nov 2003 19:30:10 :-
Mr. x wrote on 15 nov 2003 in comp.lang.javascript:
I need a check that for the same user in the same day - if the user enter
several times, it is count once


Even serverside, you cannot detect a user reliably, unless you can set a
cookie on his machine. Clientside, there is no way to store the count of
the other users.


Not even then; think about "his". Our Public Library has more than a
score of machines, and I could use each in turn. If they accept
cookies, they are probably configured not to retain them between user
sessions.

Alternatively, after he has used "his" machine, his entire family might
also use it.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #4
Dr John Stockton wrote on 16 nov 2003 in comp.lang.javascript:
Not even then; think about "his". Our Public Library has more than a
score of machines, and I could use each in turn. If they accept
cookies, they are probably configured not to retain them between user
sessions.
John, I would count that as different users.
.. his entire family might also use it.


... so we are back to the undefined entity "user".

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #5
Mr. x wrote:
I need a script for counting the no. of enters on my site, please.


You do not need and you do not want this, not even server-side.
Counters are a Bad Thing (feed the words to Google for proof,)
use tools that evaluate server logs instead.
PointedEars
Jul 20 '05 #6
JRS: In article <bp*************@ID-107532.news.uni-berlin.de>, seen in
news:comp.lang.javascript, Thomas 'PointedEars' Lahn
<Po*********@web.de> posted at Tue, 18 Nov 2003 21:18:07 :-
I need a script for counting the no. of enters on my site, please.


You do not need and you do not want this, not even server-side.
Counters are a Bad Thing (feed the words to Google for proof,)
use tools that evaluate server logs instead.


Do not presume that server logs are available.

Page counters give usable information, provided that the numbers are
interpreted cautiously. For example, if I were to put counters on the
Date/Time and Javascript portions of my site, I could get a fair
estimate of their relative popularity - especially if the numbers were
very different.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #7
Dr John Stockton wrote:
news:comp.lang.javascript, Thomas 'PointedEars' Lahn
I need a script for counting the no. of enters on my site, please.

You do not need and you do not want this, not even server-side.
Counters are a Bad Thing (feed the words to Google for proof,)
use tools that evaluate server logs instead.


Do not presume that server logs are available.

Page counters give usable information, provided that the numbers are
interpreted cautiously. For example, if I were to put counters on the
Date/Time and Javascript portions of my site, I could get a fair
estimate of their relative popularity - especially if the numbers were
very different.


In most cases either the logs are available directly or the service provider
provides tools to evaluate them (for example a web interface). Even if
nothing of that applies, and the cookie nagging of free counters aside, I
strongly recommend not to have a *visible* counter on the site at least.
Showing the numbers tells the visitor much about the author's character
because if the numbers are low in most cases the reason is obvious --
naive-dumb ways of authoring, ignoring the nature if the Web. I have never
seen a (semi-)professional putting a counter on their web site or even
heard/read recommending it. On the other hand, those numbers can be faked,
too. Do not expect a visitor to cry out "Hooray! That site -- so many
people have visited it, it must be good! I am not wasting my time here!!1".
PointedEars
Jul 20 '05 #8
JRS: In article <bp**************@ID-107532.news.uni-berlin.de>, seen
in news:comp.lang.javascript, Thomas 'PointedEars' Lahn
<Po*********@web.de> posted at Thu, 20 Nov 2003 17:23:58 :-
Dr John Stockton wrote:
news:comp.lang.javascript, Thomas 'PointedEars' Lahn
I need a script for counting the no. of enters on my site, please.
You do not need and you do not want this, not even server-side.
Counters are a Bad Thing (feed the words to Google for proof,)
use tools that evaluate server logs instead.


Do not presume that server logs are available.

Page counters give usable information, provided that the numbers are
interpreted cautiously. For example, if I were to put counters on the
Date/Time and Javascript portions of my site, I could get a fair
estimate of their relative popularity - especially if the numbers were
very different.


In most cases either the logs are available directly or the service provider
provides tools to evaluate them (for example a web interface). Even if
nothing of that applies, and the cookie nagging of free counters aside, I
strongly recommend not to have a *visible* counter on the site at least.
Showing the numbers tells the visitor much about the author's character
because if the numbers are low in most cases the reason is obvious --
naive-dumb ways of authoring, ignoring the nature if the Web. I have never
seen a (semi-)professional putting a counter on their web site or even
heard/read recommending it. On the other hand, those numbers can be faked,
too. Do not expect a visitor to cry out "Hooray! That site -- so many
people have visited it, it must be good! I am not wasting my time here!!1".


You are again being pointless.

Such logging is not necessarily available. Your "most cases" is not the
same as "all cases".

Free counters do not necessarily require either cookies or nagging. For
example, my ISP supplies one (but supplies only minimal logging) with my
type of account. If you're clever enough to find where on my site the
counter is, you might even be able to read its value, but don't ask for
details since I read it by a means not available to you.

The OP wants to discover some form of count; you should not introduce
the idea of displaying the counter to the general public just in order
to denigrate said idea.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Martin Foster | last post by:
Hi. I would like to be able to mimic the unix tool 'uniq' within a Perl script. I have a file with entries that look like this 4 10 21 37 58 83 111 145 184 226...
5
by: Shabam | last post by:
I need to create a perl script that basically loads a web page, asks for a Username and stores it as "Username". Also, it takes the domain name of the site (that runs the script) and stores that...
10
by: Max | last post by:
Hello all, I am trying to protect a page within my site with a JS password scheme. Now I know JS can be quite easily "circumvented", but I came by a code below. My question is: 1. Is there...
7
by: david | last post by:
Hi, I have 2 text boxes on an ASP form. A user enters a Serial Number in TB1 such as 0105123456, presses tab to move to TB2, TB2 then displays the value of TB1 after a calculation has been...
10
by: EnjoyNews | last post by:
I have a php site I have an include line called "include 'Cookie.php';" In this Cookie.php file I have these codes. <?php $conn = mysql_connect("$db", "$user", "$pass");...
1
by: Mr. x | last post by:
Hello, I need a script for counting the no. of enters on my site, please. I need a check that for the same user in the same day - if the user enter several times, it is count once (or something...
1
by: gry086 | last post by:
Hi this is my first post on this website, I hope that VB forum is an acceptable place for a VB Script question. I would like to wow my dad for xmas and write him a script which: 1. Runs the...
3
by: sigkill9 | last post by:
I've been working on this script all weekend and am almost done with it accept for one last detail; implementing a "process another number?" prompt after a user input is processed. The script...
4
by: Ima Lozer | last post by:
I am in the process of writing an app for one of my sites that will allow guests to send e-cards to other folks. The process is fairly simple. First the sender selects a card graphic via a series...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.