View Full Version : PHP Stock Quote

04-01-2004, 09:34 PM
I am using an external .js file to publish major stock indices, but this, of course, require manual update every day.

How can I get these numbers (just index level and the change, like: Dow Jones: 10,321 Change: -320) via a php script and do not bother manually updating it every day?

I am told that cURL and cron job could be a solution, but I'm not sure how are they are used or whether they would be the best solution to the problem.


04-01-2004, 09:50 PM
How do you acquire these stock quotes manually right now?

I did a search on Google, and came up with this:

It uses some service from Yahoo. Play with it and hopefully it will point you in the right direction.


04-01-2004, 10:08 PM
I acquire them just Manually. :)

- which means I primitively enter them everyday as text in an external.js file.

What I actually want to display is the latest stock market index level, not a stock quote ticker. but the script you refer to looks like something I can play with in order to modify it to make it become usable for me.

I'll let you know what happens.


04-02-2004, 03:01 AM
worked great.

such an easy to use php script to get quotes and more.

highly recommended.