Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'You don't need WGET' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You don't need WGET
Authored by: wallybear on Sep 28, '04 11:31:50AM

You can use curl instead of wget. The curl command is already installed.
Just change the line:

$wget = "/usr/local/bin/wget";

with this one:

$wget = "/usr/bin/curl";

and change this one (at the end of the script):

$done = system("${wget} -q --output-document=$temp_xml -U Mozilla '$rss'");

with this one:

$done = system("${wget} -s --output $temp_xml -A Mozilla '$rss'");

That's all. I did not change the variable name ($wget) to make changes simpler.



[ Reply to This | # ]