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



On Tue, 18 Oct 2005 16:04:51 +0200, Ewoud Dronkert
<firstname@xxxxxxxxxxxxxxxxxxxx> posted:

>MikeSoja wrote:

>>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.

>> The delay only occurs when fopen() runs from the web site.

>I understood, that's why I suggested that weather.gov might be blocking
>*their* ip address.

Ah, so. My mistake. I assigned the possessive to the closest noun,
not the correct one.

I suppose there's no way to find out, outside of badgering the
respective parties.

>> 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.

>..but probably not then.

As it is, the delay affects only the first page access every hour,
so it's just a niggling problem, and something apparently beyond the
scope of my script.

Mike Soja

.



Relevant Pages

  • Re: fopen() taking ten seconds or more to come back...
    ... MikeSoja wrote: ... > The delay only occurs when fopenruns from the web site. ... that's why I suggested that weather.gov might be blocking ...
    (comp.lang.php)
  • Re: fopen() taking ten seconds or more to come back...
    ... >> The delay only occurs when fopenruns from the web site. ... that's why I suggested that weather.gov might be blocking ... Unless this hosted site isn't the *only* site hitting weather.gov from ...
    (comp.lang.php)
  • Re: 8ms Timer for serial port access
    ... You can use 'poll' to tell when there's data ready ... >> 3) Repeat. ... >> 2) Read as many bytes as are ready without blocking. ... > Then I will have another delay before I can process the data. ...
    (comp.os.linux.development.apps)
  • Explorer slow down after DL
    ... using explorer or other internet programs I have a delay. ... Web site ... shows recorded by Media Center PCs on other Microsoft Windows XP PCs Web ...
    (microsoft.public.windowsxp.security_admin)
  • Re: connecting to printer press esc to cancel
    ... Word MVP web site http://word.mvps.org ... Rob wrote: ... with no delay but does delay with that message after I press ctrl+p. ... Word crashes if I do press esc to cancel. ...
    (microsoft.public.word.docmanagement)