Counter

Discussion in 'PHP' started by HighRankingSEO, Oct 20, 2009.

  1. #1
    Hey I need some help or resources to find out how to create counter scripts like this:
    http://www.ibiblio.org/lunarbin/worldpop

    I am doing it for people with a certain disease....it just has to have the numbers and stuff, doesnt need to look as pretty as that 1....
     
    HighRankingSEO, Oct 20, 2009 IP
  2. orionoreo

    orionoreo Peon

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you should have notice that's a java counter... you're in the php section
     
    orionoreo, Oct 20, 2009 IP
  3. organicCyborg

    organicCyborg Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Even though it is Java, you can do something similar with PHP, or just use javascript if you choose.

    The world population counter works off the idea that roughly three people are added to the planet every second. That's to say, enough people have died and been born to come out to a net people difference of 3.

    You'll need to create a formula for your purposes based off the data you have.
     
    organicCyborg, Oct 21, 2009 IP
  4. orionoreo

    orionoreo Peon

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    javascript is probably the best option, I'm not sure if its possible solely on PHP to update the counter without refreshing the page every second - ajax
     
    orionoreo, Oct 21, 2009 IP