I have a small application that grabs Yahoo Financial stock quotes for my web page. It's really simple, and the only non-trivial part of the code is this:
$fp = fopen($yahoo_url, "r"); //open the file storing yahoo stock info
This worked fine for a day or so, but now it runs really slow (it now takes 15 seconds to complete when it used to only take two or three). I think it has to do with the fact that my site gets quite a bit of traffic, and requesting this resource so often is getting me into trouble with Yahoo or my host. It's almost like one of them is telling my page "stop doing that" by throttling the request/response.
I'm a PHP n00b, so any help would be much appreciated.
Thanks!