bogdan
bogdan

Reputation: 1

showing real-time web statistics - hits from visitors

I have a web statistic website based on php script. I want to show in real-time to my clients when a visitors hits their website. The info is presented in static way, the clients must refresh the page to see if any hit ocurred. I searched and tried...but nothing.

Upvotes: 0

Views: 174

Answers (1)

genesis
genesis

Reputation: 50974

use jQuery and ajax

demo:

setInterval(function(){
      $("#statistics").load("statistics.php");
}, 10000);

Upvotes: 2

Related Questions