When Simple PHP counter meets Download Odometer

Posted by normanr on Sun, 04/17/2005 - 21:08Syndicated Download Counter

I've created a mix of phusikos's and minghong's counters, check it out.


Submitted by pchere on Tue, 07/26/2005 - 15:10.

More ways to add a Firefox Download Counter.

Submitted by sergio_br on Fri, 07/22/2005 - 18:39.

My website has a different approach:
I exibit a statement as "almost 74 million" or "more than 73 million" according to the number and IF the person is curious, it is shown the "dynamic" odometer (mouse over the fake link)

Towards 100 million FFs Celebration

Submitted by sergio_br on Sun, 04/17/2005 - 22:22.

Beautiful work.
I just think some people would doubt about the validity of the information, because it updates too fast, and internet connections are usually slower. How can a program comunicate accross the web, get the counter value xml, process it and update the web page so fast ? Is it a special connection ?

Regards

Sergio Reloaded

Submitted by normanr on Mon, 04/18/2005 - 09:52.

It uses the infocraft javascript, which:

"... starts a timer to automatically call the get_count() function at regular intervals (first 10 seconds, then every 60 seconds after that) to ensure that the ticker remains synced with the official count."

"... calculates an approximate download by comparing the first and most recent values from the counter feed. Once the download rate is calculated (after the second set of data is retrieved), the script sets a timer to call the update_counter() function every 250 milliseconds. This function calculates the an estimated count based on the approximate download rate on each function call."

So it's really doing a web call when you hit the page, 10 seconds later, then every minute thereafter.

Submitted by Skuld on Sun, 04/17/2005 - 21:52.

look at those numbers fly up!! 8o
========================
Vonnoodle forums

Submitted by normanr on Sun, 04/17/2005 - 22:02.

just imagine http://www.tekzoned.com/hand/ but for Firefox downloads instead!