Re: Re: metar decoding

From: Date: Fri, 09 May 2003 22:34:28 +0000
Subject: Re: Re: metar decoding
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147072@lists.php.net to get a copy of this message
I was just reading the reply from Steve M when I stumbled across this page in my 20-billionth google search: http://woody.cowpi.com/phpscripts.html the getwx script works really well, and gives a very simple output that can also be easily modified. His code is pretty well commented as well. Thanks Steve for that input, while I found a script I needed your information will still be helpful to. Thanks, Bryan On Fri, 9 May 2003, MVCS wrote: > > Bryan, > > Even though I've barely managed to distinguish my arse from a hole in the > ground php-wise, I came to this group for metar-related problems as well. > What I've ended up doing is using NOAA's decoded metar for my local > monitoring station, reading that text file into an array, then echoing > whichever line of that array i need, and not using the ones I don't. > > what i've come up with: > > <?php > > $weather = file > > ('http://205.156.51.200/pub/data/observations/metar/decoded/KLRU.TXT'); > > echo '<b>Current conditions for Anytown, USA</b><br>'; > echo $weather[1] . '<br>'; > echo $weather[2] . '<br>'; > echo $weather[3] . '<br>'; > echo $weather[4] . '<br>'; > echo $weather[5] . '<br>'; > > ?> >

« previous php.general (#147072) next »