megadutch Posted August 16, 2012 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. Link to comment Share on other sites More sharing options...
Larry Posted August 21, 2012 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 Link to comment Share on other sites More sharing options...
megadutch Posted August 21, 2012 Author 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. Link to comment Share on other sites More sharing options...
Larry Posted August 22, 2012 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. Link to comment Share on other sites More sharing options...
megadutch Posted August 24, 2012 Author Share Posted August 24, 2012 I played around with the code and got it to work! Thank you, Larry. Link to comment Share on other sites More sharing options...
Larry Posted August 24, 2012 Share Posted August 24, 2012 Great! Link to comment Share on other sites More sharing options...
Recommended Posts