Pulling Stock Information

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
veo
Forum Newbie
Posts: 4
Joined: Thu Aug 14, 2008 2:05 pm

Pulling Stock Information

Post 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.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Pulling Stock Information

Post by jaoudestudios »

How do you have it stored?
veo
Forum Newbie
Posts: 4
Joined: Thu Aug 14, 2008 2:05 pm

Re: Pulling Stock Information

Post 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?
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Pulling Stock Information

Post 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.
Post Reply