I have this jQuery piece that currently increments the number every every 5 seconds. The problem is that its client side, so it is reset every time you refresh the page.
Instead, I would like the counter to continue even if you are far from the site, and no matter how many times you refresh the page, so I thought that the server side of the script, such as PHP, would be better suited for my use case. If not, suggest another.
I installed a working script of what I have in jQuery: http://jsfiddle.net/f354bzy5/
What will PHP be like to recreate this effect, which includes my requirements above?
Here is the jQuery I use:
var counter = 22000000000;
$(".count").html(counter);
setInterval(function () {
$(".count").html(counter);
++counter;
}, 5000);