I am building a map script to show various bit of information taken from a text file on my server.
however I have bumped into a problem i now need to take the information from one txt file that I have stored in an array and pull further information from another txt file based upon the info from the first.
if this sounds like im going in circles you may be right. 🙂
Now Im able to pull the info from the first array and echo it but what its seam's like as if you need to echo that in the preg_match_all so it sees it am I making any sence here.
$html1 = join ("",file('http://www.flyukva.com/leetest/map/Airports.txt'));
$arrive=$result1 {"arrive1"};//this would be info from array 1
preg_match_all("$arrive", $html1, $ATC);
$ATC1=array(explode(':', $ATC[0][0], -1));
$metar=array(weather => "{$ATC1[0][0]}");
echo '<br><b>', print_r($ATC1, TRUE), '</b></pre>';
echo $arrive;
Thanks for taking the time to look
kind regards
and happy coding
Lee