BTPlus Posted April 12, 2006 Share Posted April 12, 2006 I'm looking for a script that will count up instead of down, like the one you find on the census site that counts population.Thanks,Kris Quote Link to comment https://forums.phpfreaks.com/topic/7253-count-up/ Share on other sites More sharing options...
Yesideez Posted April 12, 2006 Share Posted April 12, 2006 Any chance you can be a bit more specific like what you want it for?You can have a script to count up for a lot of things but saying where and what you want to use it in will help give others a lot more help in giving you a satisfactory answer. Quote Link to comment https://forums.phpfreaks.com/topic/7253-count-up/#findComment-26402 Share on other sites More sharing options...
BTPlus Posted April 12, 2006 Author Share Posted April 12, 2006 As long as it counts up instead of down, what it's used for is not important. I want to be able to enter a beginning number in the script, add a multiplier and a time component, and have the script count from the beginning number upward by using the multiplier and the time component. In other words, start at 5000 and count by (add) 2 every 3 seconds.Thanks,Kris Quote Link to comment https://forums.phpfreaks.com/topic/7253-count-up/#findComment-26410 Share on other sites More sharing options...
kenrbnsn Posted April 12, 2006 Share Posted April 12, 2006 What are you planning on doing with this number?[code]<?phpfor ($i = 5000; $i < 100000; $i += 2) { echo $i.'<br>'; sleep(3); }?>[/code]Ken Quote Link to comment https://forums.phpfreaks.com/topic/7253-count-up/#findComment-26418 Share on other sites More sharing options...
earl_dc10 Posted April 13, 2006 Share Posted April 13, 2006 if you want a realtime counter I would recommend javascript Quote Link to comment https://forums.phpfreaks.com/topic/7253-count-up/#findComment-26429 Share on other sites More sharing options...
BTPlus Posted April 13, 2006 Author Share Posted April 13, 2006 [!--quoteo(post=364232:date=Apr 12 2006, 07:54 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Apr 12 2006, 07:54 PM) [snapback]364232[/snapback][/div][div class=\'quotemain\'][!--quotec--]What are you planning on doing with this number?[code]<?phpfor ($i = 5000; $i < 100000; $i += 2) { echo $i.'<br>'; sleep(3); }?>[/code]Ken[/quote]I was thinking about putting it on my website as a counter for the number of viruses that have been cleaned off of the computers I have worked on. I have kept records of the number of viruses and spyware I have clean off for my customers. I now have a calculated yearly average. I will setup the counter to automatically count. Quote Link to comment https://forums.phpfreaks.com/topic/7253-count-up/#findComment-26438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.