Re: Bug
Brought to you by:
iridium
From: Ray v. B. <r_v...@ho...> - 2002-02-23 17:03:37
|
>From: "Rui Fernandes" <nov...@ne...> >To: <php...@gi...> >Subject: Bug >Date: Fri, 22 Feb 2002 12:17:24 -0000 > >Dear friend, > >I've found a bug in the script. When I asked the information for London, it >came: > >54 minutes ago, at 11:20 UTC, the wind was blowing at a speed of 10.3 >meters per second (23.0 miles per hour) from West in London / Gatwick >Airport, United Kingdom. The temperature was 13 degrees Celsius (55 degrees >Fahrenheit), and the pressure was 1,001 hPa (29.56 inHg). The relative >humidity was 76.7%. There were scattered clouds at a height of 914 meter >(3000 feet) and scattered clouds at a height of 1280 meter (4200 feet). The >visibility was >11.3 kilometers (>7 miles). Current weather is . >(...missing...) > >I can't find the problem. Can you solve it? I have seen similar texts. For example, take the next metar: EHEH 231555Z 27013KT 9999 FEW018 03/01 Q0996 BLU It doesn't specify any precipitation or other weather phenomena. Therefor, the $weather_str stays empty, leading to the missing text. Maybe this should be changed to omitting the entire line ('Current weather is .')? Ray EHEH 231555Z 27013KT 9999 FEW018 03/01 Q0996 BLU _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |