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.
Pulling Stock Information
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Pulling Stock Information
How do you have it stored?
Re: Pulling Stock Information
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?
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?
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Pulling Stock Information
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.
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.