Ok i'm still learning php and have been toying with the idea of creating a small game to expand my knowledge!

Now then one part that puzzles me is lets say I have a stock market, which is going to rise and fall, how do i make the amrket appear if it changing all the time? do i use a php script? or do i use another language to interect with the server?