Re: php + lynx + grep

From: Date: Tue, 06 Apr 2004 13:12:09 +0000
Subject: Re: php + lynx + grep
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182462@lists.php.net to get a copy of this message
Brian L. Ollom wrote:
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.

« previous php.general (#182462) next »