Re: php + lynx + grep
| From: | John Nichel | Date: | Tue, 06 Apr 2004 17:48:16 +0000 |
| Subject: | Re: php + lynx + grep | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182508@lists.php.net to get a copy of this message | ||
Brian L. Ollom wrote:
This is the exact code I used, and hit via a browser.... <?php $output = `lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1`; echo ( $output ); ?> -- *********************************************************************** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \ / /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com john@KegWorks.com * 14203 - 1321 * ***********************************************************************What's the output you're looking for. When I run that line of code, and echo out $output, I get... <TD><FONT FACE="Arial,Helvetica"> KTOL 061552Z 22013KT 10SM CLR 11/M03 A3001 RMK AO2 SLP164 T01111033On a website or command line? Command line is the easy part, but I'm having problems getting that to work on a web site. ----------------------------------------------------------------| Brian Ollom | | | NiteHawke.Com | http://www.nitehawke.com/ || An Authorized Firefly Dealer | email bollom@nitehawke.com | ---------------------------------------------------------------- ForPilot's - Software for your piloting needs! http://www.forpilots.com/ Great Deals on Great Pilot Supplies! http://www.acespilotshop.com/cgi-bin/ares.cgi?ID=240400532 Want deals on other great stuff? Click here! http://www.dollardays.com/index.asp?affilid=385