lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1
I need to get the output of the above command for a web site I'm working on. I've tried exec(), system() and neither seems to work.
You know, it might be easier if you use the new NOAA XML weather feeds [ http://www.nws.noaa.gov/alerts/ ].
Also, did you know that you can FTP into their public server and download observation reports? They are cycled every hour, and are available via anonymous FTP from weather.noaa.gov/data/observations/metar/cycles directory.
Or, you can use snoopy and submit your ICAO code to http://www.noaa.gov/weather/metar.shtml and have snoopy return the plain text version of the file. You should get your METAR report there.
(yes, I am an avid flight simulator)
Sorry I didn't answer your original question.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php