Why not try cURL?
Not the cURL functions included in PHP, but the actual binary installed
with most linux distributions.
Even better would be to actually use the cURL functions in PHP, but
whatever you find easier.
Matt
On Tue, 2004-04-06 at 08:41, Brian L. Ollom wrote:
> lynx --source http://wea
On Apr 6, 2004, at 12:53 PM, Brian L. Ollom wrote:
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.
I use following to retrieve output with Lynx:
$out =
Brian L. Ollom wrote:
What's the output you're looking for. When I run that line of
code, and echo out $output, I get...
KTOL 061552Z 22013KT 10SM
CLR 11/M03 A3001 RMK AO2 SLP164 T0033
On a website or command line? Command line is the easy part, but
I'm having problems getting that to work
Brian L. Ollom wrote:
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 int
> 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
> 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
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/current/KTOL.html' );
fore
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
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.
It's output should be something like
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
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
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
12 matches
Mail list logo