gibbons Posted March 2, 2011 Share Posted March 2, 2011 I am having an issue in which fopen randomly generates either timeout or "failed to open stream" errors when trying to get stock quotes from yahoo finance. Here's an example. <b>Warning</b>: fopen(http://finance.yahoo.com/d/quotes.csv?s=NFLX&f=sl1d1t1c1ohgv&e=.csv) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed! This issue occurs sporadically; sometimes it's fine, other times it errors out causing the quote to fail. Any ideas on how I can resolve this? Thanks very much. Quote Link to comment https://forums.phpfreaks.com/topic/229381-fopen-fails-randomly/ Share on other sites More sharing options...
Zane Posted March 2, 2011 Share Posted March 2, 2011 are you calling it multiple times? Quote Link to comment https://forums.phpfreaks.com/topic/229381-fopen-fails-randomly/#findComment-1181878 Share on other sites More sharing options...
gibbons Posted March 2, 2011 Author Share Posted March 2, 2011 Thanks for your response. On some pages yes, but the error is also happening on pages where it's only called once. Quote Link to comment https://forums.phpfreaks.com/topic/229381-fopen-fails-randomly/#findComment-1181899 Share on other sites More sharing options...
gibbons Posted March 2, 2011 Author Share Posted March 2, 2011 Any ideas? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/229381-fopen-fails-randomly/#findComment-1182072 Share on other sites More sharing options...
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.