megadutch 0 Posted August 16, 2012 Report Share Posted August 16, 2012 Larry, It appears that the URL you used in example 9.1 to get stock market quotes is no longer valid. http://quote.yahoo.c....csv?s=%s&f=nl1 Thank you for your time. -- John. Quote Link to post Share on other sites
Larry 428 Posted August 21, 2012 Report Share Posted August 21, 2012 Sorry about that. I used a new URL for the third edition apparently. You can also find a valid URL here: http://www.gummy-stuff.org/Yahoo-data.htm Quote Link to post Share on other sites
megadutch 0 Posted August 21, 2012 Author Report Share Posted August 21, 2012 Thank you for this information, Larry. Would this be the URL I need to use in my code? http://finance.yahoo...=snd1l1ohgvwdyr I was able to parse the file name. However, the file seems to download to my hard drive instead of being saved to the server and I get the following message: "The latest value for Missing Symbols List. is $" Here is my script: http://megadutch.com/php/advphptech/chptr9 Any assistance would be appreciated. Thank you for your time! -- John. Quote Link to post Share on other sites
Larry 428 Posted August 22, 2012 Report Share Posted August 22, 2012 Off the top of my head, that looks right. It worked just fine for me. It should download to your hard drive if you access it in your browser, because your browser doesn't know how to handle CSV. You'll also need to change the formatting (the characters after f=) to only request the information you want. Quote Link to post Share on other sites
megadutch 0 Posted August 24, 2012 Author Report Share Posted August 24, 2012 I played around with the code and got it to work! Thank you, Larry. Quote Link to post Share on other sites
Larry 428 Posted August 24, 2012 Report Share Posted August 24, 2012 Great! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.