Thanks so much Ken, that change has fixed this issue. And I'll go back into the scripts because I think some similar issue was there.
One more question if I may...
After this line 133 fix I now get
Parse error: syntax error, unexpected '[' in /home/content/96/5379896/html/weather/decodeMETAR_sub_funct.php on line 445
Line 133 is $beaufort_force = calculateBeaufort($output['knots'],'kts')[1];
and the code around there is
// ------------------------------------------------
# these two lines are addition by SPAWS to select drawing
# IMPORTANT - If you don't have the external script 'forbidden\sourceView.php', you won't have function 'calculateBeaufort'
if(function_exists('calculateBeaufort')) {
$beaufort_force = calculateBeaufort($output['knots'],'kts')[1];
# IMPORTANT - The next image set is specific to the SPAWS web site design, remove this snippet of code if using this script elsewhere
if(file_exists("../gauges_images/beaufort_" . $beaufort_force . ".png")) $output['house'] = "../gauges_images/beaufort_" . $beaufort_force . ".png";
}
//-------------------------------------------------
Ok, a second question. Are some of the errors I noted PHP version specific - i.e. could they have worked in PHP v7?
Regards,
Paul