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

Your name:

Reply:


Posted by MikeSoja on 10/18/05 14:57

For months I've been using...

$fp = fopen("http://www.weather.gov/data/current_obs/KPKB.xml","r");

.... to open the xml file, which I then parse to extract the local
weather data, and it has worked swell.

Just lately, the page has started hanging, and by blocking off
sections of code and timing different sections I've traced the delay
to that fopen() statement.

The script runs nearly instantaneously from my local drive,
accessing the remote URL, but takes ten or eleven seconds,
consistently, from the web.

I suspected something changed with my web provider, but they're
still running PHP 4.3.1 and allow_url_fopen is on & on.

Any ideas?


Mike Soja

[Back to original 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

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