Questions tagged [hitcounter]

A web counter or hit counter is a computer software program that indicates the number of visitors, or hits, a particular webpage has received. Once set up, these counters will be incremented by one every time the web page is accessed in a web browser.

A web counter or hit counter is a computer software program that indicates the number of visitors, or hits, a particular webpage has received. Once set up, these counters will be incremented by one every time the web page is accessed in a web browser.

The number is usually displayed as an inline digital image or in plain text or on a physical counter such as a mechanical counter. Images may be presented in a variety of fonts, or styles; the classic example is the wheels of an odometer.

The counter is often accompanied by the date it was set up or last reset, otherwise it becomes impossible to estimate within what time the number of page loads counted occurred.

Some websites have been known to offer prizes to the visitor who makes the web counter roll over to a specific number. Such an event is known as a kiriban.

Source:http://en.wikipedia.org/wiki/Web_counter

109 questions
0
votes
4 answers

Get page URL by using a program within a pageviewerwebpart in SharePoint

I have a simple hit counter written in c# .net. I placed that counter to many pages using the pageviewerwebpart. What I want to do is, not only counting the hits, but also which page triggered the hit counter. So how can I retrieve the page URL with…
stckvrflw
  • 1,489
  • 3
  • 22
  • 37
0
votes
4 answers

Do not increment on page reload

I've placed a hit counter on my page. It reads a text file, increments the number in the file, and later in the page, I output the incremented value. $hitsFile = "hits/exps/stats.txt"; $hits = file($hitsFile); $hits[0]++; $fp =…
akinuri
  • 10,690
  • 10
  • 65
  • 102
0
votes
1 answer

Sharepoint hit counter is not displayed

I followed the instructions here http://support.microsoft.com/kb/825532 After that when I preview my page, I can't see the hitcounter. I learned that it may be related to permissions of the site but I couldn't find how to do it. Is it realy related…
stckvrflw
  • 1,489
  • 3
  • 22
  • 37
0
votes
2 answers

PHP - Hit counter textfile reset

I have an issue with my non-unique hit counter. The script is as below: $filename = 'counter.txt'; if (file_exists($filename)) { $current_value = file_get_contents($filename); } else { $current_value =…
Marcin
  • 994
  • 2
  • 11
  • 26
0
votes
1 answer

PHP Counter overwraps/overflows only 1 byte of data, counter resets (race condition)

I know this is a simple question but I downloaded a PHP Counter script from http://www.stevedawson.com/scripts/text-counter.php which is the first result on google for PHP counter scripts and it worked great as expected. I tried to see if it messes…
SSpoke
  • 5,656
  • 10
  • 72
  • 124
0
votes
1 answer

Can I embed a javascript counter in a PDF?

Challenge: I'm distributing a PDF to a group of people, by e-mail. Now i would like to measure the amount of unique users which actually open the PDF file. I can't store the PDF online, so that's not an option. But perhaps I can let the PDF…
0
votes
1 answer

Grails Page Counter

I need to create a counter for some of the pages. So I create a domain named Counter : class Counter { java.sql.Date date; Member member; int count; int submit; //setter and getter... } Count is for how many times this page opened, and…
zavero.kris
  • 21
  • 1
  • 6
0
votes
0 answers

JS Global Hit Count

I've built a pretty simple novelty page that just calls a basic javascript function when a button is clicked, but I want to be able to count how many times that button has been clicked, globally. Being relatively new to javascript I'm struggling to…
Craze
  • 1
0
votes
2 answers

Cannot get result for this hit counter

I am in the process of making a hit counter but am stuck. I am not able to understand why this won't process properly. The result will always show 'Not Found. Your Ip-address is(ip-address,I did not type that here)' even if the ipaddress is there in…
0
votes
1 answer

Hit counter using MS Access & Active Sessions

I'm trying to create a hit counter for my website I have looked at a lot of examples on the net, but most don't have the correct forms I am looking for. For example, on most hit counters i have created, all i do is press refresh and the hit goes up.…
Nicholas Aysen
  • 568
  • 3
  • 18
  • 40
0
votes
0 answers

MVC 3 Hit Counter Restarting

My counter is saved on a text file. My problem is that the counter restarts at zero without my knowledge. I only experienced this once for now. But I want to know why does the code restart the counter. Here is the code: public class…
0
votes
2 answers

How do I separate and style hit counter digits with php methods?

I am using this PHP code to get and display the number of visitors to my site (hit counter). Currently it is set up to display that number in a single block, i.e. - I would like to display each digit in its own html tag in order to style each number…
Paul Yorde
  • 75
  • 1
  • 2
  • 12
0
votes
1 answer

Make hit counter per user profile on PDO

I have a problem with this code for make a hit counter per user profile on PDO (MYSQL), on page loads not update and not show the counter, only text "Visits:", the value remains at "0". $id = $profile_data['username']; $statement =…
0
votes
1 answer

Very long or unlimited session lifetime in PHP? (to determine unique visitor)

I have simple visitor counter written in PHP. I want to use PHP session id as field to determine unique visitor on my page. I store PHP session ID in database and I want to use "group by" to count unique users. Question(s) Is this possible to set…
Kamil
  • 13,363
  • 24
  • 88
  • 183
0
votes
1 answer

Page hit counter with AJAX - how to handle multiple visits of same user?

I created simple hit counter that sends ajax requests to determine how long visitor is viewing the page. In JS im just hitting PHP file every few seconds: var ajaxreq = new XMLHttpRequest(); ajaxreq.open("GET", "visitlogger.php", true);…
Kamil
  • 13,363
  • 24
  • 88
  • 183