Login   Register  
PHP Classes
elePHPant
Icontem

Little patch

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MyWeather  >  All threads  >  Little patch  >  (Un) Subscribe thread alerts  
Subject:Little patch
Summary:Add a country
Messages:1
Author:Aleksy
Date:2008-07-03 14:54:24
 

  1. Little patch   Reply  
Picture of Aleksy
Aleksy
2008-07-03 14:54:24
Hi,
I want to explain something I found when tried to use this class.
When you set a new city like Paris, Berlin there are several results but the class can't handle it. Som, in the example.php put this on line 12 after $theCity ='Paris';
$TheCity .= ',France'; // set a country to avoid ERRORS when multiple cities with same name are found.

or for Berlin where setting a country would not be enough, see this:

$theCity ='Berlin';
$TheCity .= '%20Schoenefeld,Germany'; // set a watched place, country to avoid ERRORS when multiple cities with same name are found.

Now I am working to make the class give an adequate answer when the case is like Berlin but so far not ready to upload.

GreetZ to the Author very very useful class.