Regarding the $metarGMT error, it is indeed undefined at that point. Sometime in the past I modified my own code from:
$t = array(
"unable to load $icao data RC=$RC",
5,
'day_partly_cloudy.gif',
"unable to load $icao data RC=$RC",
array() ,
$metarGMT
);
to:
$t = array(
"unable to load $icao data RC=$RC",
5,
'day_partly_cloudy.gif',
"unable to load $icao data RC=$RC",
array(),
0);
// $metarGMT);
... so I must have run into this before.
I'll have a look at the others...