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 16:32

On 21 Oct 2005 05:50:57 -0700, "Steve" <googlespam@nastysoft.com>
posted:

>> >Does the delay still occur at your site if you substitute the IP:

>> > $fp = fopen("http://81.22.33.120/data/current_obs/KPKB.xml","r");

>> >If not, then your host's DNS or some similar network-related issue is
>> >causing the delay.

>> No delay on that one, just a big, fat 404.

>> I'm afraid I don't understand how using an incorrect address tells
>> me anything, though.

>That was a regrettable typo (looks like my DNS is screwed up too!
>Although it doesn't help that weather.gov is an alias) Please try with:

> $fp = fopen("http://140.90.113.195/data/current_obs/KPKB.xml","r");

>When I use this IP I get the same XML resultset as when using
>www.weather.gov.

That's much better, thanks.

And the delay goes away!!!

And, as you say, the resultset is the same, and therefore, the rest
of my script continues to work.

Thanks.

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

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