You are here: Re: fopen() taking ten seconds or more to come back... « PHP Programming Language « IT news, forums, messages
Re: fopen() taking ten seconds or more to come back...

Posted by MikeSoja on 10/21/05 15:00

On Tue, 18 Oct 2005 16:04:51 +0200, Ewoud Dronkert
<firstname@lastname.net.invalid> posted:

>MikeSoja wrote:

>>On Tue, 18 Oct 2005 14:23:31 +0200, Ewoud Dronkert
>><firstname@lastname.net.invalid> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация