Re: [PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> Functions like system, exec etc aren't supported by most ISP > ( at least over here in germany ). But you might give > > file_get_contents(); > file(); > ... > > a look as they can read the output of HTTP request which might > be easier: > > $var = file > ( 'http://weather.noaa.gov/weather/cu

Re: [PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> Try > > $output = `lynx --source > http://weather.noaa.gov/weather/current/KTOL.html |grep -v > '41-35-19N' |grep TOL | head -n 1` > > Those are backticks, not single quotes surrounding the > command. Backticks didn't work either. I got it to work by using a cron to > the info into a tex

[PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
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. It's output should be something like this(it changes hour

[PHP] Re: php + lynx + grep

2004-04-06 Thread Brian L. Ollom
> 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. > > It's output should be something like thi

[PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
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. It's output should be something like this(it changes hour

[PHP] php + lynx + grep

2004-04-06 Thread Brian L. Ollom
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. It's output should be something like this(it changes hour