PHP Classes

Celcius Temperatues

Recommend this page to a friend!

      PHP Yahoo Weather Class  >  All threads  >  Celcius Temperatues  >  (Un) Subscribe thread alerts  
Subject:Celcius Temperatues
Summary:Bug in demo script where uppercase "C" still returns temp in F.
Author:Craig Vincent
Date:2008-11-10 00:57:42

  1. Celcius Temperatues   Reply   Report abuse  
Picture of Craig Vincent Craig Vincent - 2008-11-10 00:57:43
Just a quick note that in the example script,

$weather_chile = new weather("UKXX1051", 3600, "C", $cachedir);
with an uppercase "C" still returns temperatures in farenheit, but changing to a lowercase "c" fixes the problem.

$weather_chile = new weather("UKXX1051", 3600, "c", $cachedir);

Minor I know :)

Cool script though!