Re: fopen() taking ten seconds or more to come back...



On Tue, 18 Oct 2005 14:23:31 +0200, Ewoud Dronkert
<firstname@xxxxxxxxxxxxxxxxxxxx> posted:

>MikeSoja wrote:

>> $fp = fopen("http://www.weather.gov/data/current_obs/KPKB.xml","r";);
>> I suspected something changed with my web provider

>Maybe weather.gov is blocking/putting a brake on their ip no.

Or, rather, I should say, it comes right back *to* the fopen() when
I run it from my local hard drive. The delay only occurs when
fopen() runs from the web site.

And I only read from weather.gov once an hour, keeping a local copy
of the file between times, so I'm not hitting them up too often.

Mike Soja
.



Relevant Pages