Page 1 of 1
Pulling Stock Information
Posted: Thu Aug 21, 2008 9:14 am
by veo
Hey all. I'm somewhat a novice with php and I'm wondering how I would go about pulling stock information onto my website?
I see it all the time.
MONTH DD YYYY
STOCK 9.99 +.25
information delayed by 20 minutes.
how does one pull that kind of information?
Thank you.
Re: Pulling Stock Information
Posted: Thu Aug 21, 2008 4:14 pm
by jaoudestudios
How do you have it stored?
Re: Pulling Stock Information
Posted: Fri Aug 22, 2008 8:00 am
by veo
Well that's the thing...I'm not storing it. I would assume (which obviously I could be wrong) that most people are pulling the data from an external source like the NYSE or something like that.
Also - just to be clear that I'm not secretly looking for somebody to do this for me...I'm really interested in what the process would be to go about doing what I want to do. I can usually figure out what functions I need...usually, but I'm not sure of the process.
eg: do I use fopen to load a page from a url and parse the string data?
Re: Pulling Stock Information
Posted: Fri Aug 22, 2008 2:31 pm
by jaoudestudios
It depends on how you plan on storing the data.
I would use a MySql database. If you use a database you wont need to use fopen you would search and filter for the results you require.