Cross posting ...
Just do the first one (line 334 now is 337)
O.K.
First of all ....
// line #334 (produces fatal error)
<td colspan="2" align="center"><img src="<?php print${imagesDir}?>aqi.gif" width="221" height="102" alt="" /><br /><br /></td>
// should be
<td colspan="2" align="center"><img src="<?php print $imagesDir; ?>aqi.gif" width="221" height="102" alt="" /><br /><br /></td>
#line #220
//$adtext = '';
// should be
$adtext = '';
// now we need to add a non-existant 'flag' ($real2)
// code block starting line #121
// search for two AQI types
if(preg_match('|<br /><br />\n(.*) - (.*) AQI - (.*)<br />(.*) - (.*) AQI - (.*)</div>|Uis', $realtime[0]["desc"])) {
preg_match('|<br /><br />\n(.*) - (.*) AQI - (.*)<br />(.*) - (.*) AQI - (.*)</div>|Uis', $realtime[0]["desc"], $r3);
$realIndex2 = trim(strip_tags($r3[4]));
$realValue2 = trim(strip_tags($r3[5]));
$realMeasure2 = trim(strip_tags($r3[6]));
}
// needs to be
// search for two AQI types
$real2 = false;
if(preg_match('|<br /><br />\n(.*) - (.*) AQI - (.*)<br />(.*) - (.*) AQI - (.*)</div>|Uis', $realtime[0]["desc"])) {
preg_match('|<br /><br />\n(.*) - (.*) AQI - (.*)<br />(.*) - (.*) AQI - (.*)</div>|Uis', $realtime[0]["desc"], $r3);
$realIndex2 = trim(strip_tags($r3[4]));
$realValue2 = trim(strip_tags($r3[5]));
$realMeasure2 = trim(strip_tags($r3[6]));
$real2 = true;
}
I think that will fix everything that's being complained about ...
... unless you tell me different