Hello guys and gals,
I am having a small problem. I have a small script which gets a METAR feed, processes it and then displays the weather information. The problem is that it will accept 1 weather station as an input variable.
How can I run this script TWICE within the same execution, while getting 2 results, using 2 different weather stations?
The main file uses this to execute the functions which are on another separate file:
The echo line prints out the raw METAR feed and then outputs 2 carriage returns. The print line outputs the processed METAR in a more detailed manner.
What I basically want is to be able to add a $station2 and output both stations.
Thanks in advance.
Regards,
RascaPR
I am having a small problem. I have a small script which gets a METAR feed, processes it and then displays the weather information. The problem is that it will accept 1 weather station as an input variable.
How can I run this script TWICE within the same execution, while getting 2 results, using 2 different weather stations?
The main file uses this to execute the functions which are on another separate file:
Code:
<?php
require_once ("functions_weather.php");
$station = "KJFK";
$wxInfo['STATION'] = $station;
$metar = get_metar($station,$wxInfo);
process_metar($metar,$wxInfo);
echo "METAR = $metar<BR><BR>\n";
print_wxInfo($wxInfo);
?>
The echo line prints out the raw METAR feed and then outputs 2 carriage returns. The print line outputs the processed METAR in a more detailed manner.
What I basically want is to be able to add a $station2 and output both stations.
Thanks in advance.
Regards,
RascaPR