Issue with wget, php, and shell_exec


#1

currently, I have this blurb of code in a php script

$str = shell_exec(‘wget http://lists.evolt.org/archive/Week-of-Mon-20020930/123813.html’);
var_dump($str);
no matter what I do, $str is always an empty string ("")

I’ve also tried exec() with the second argument specified with an array, but that returns an empty array too

is there anything that I can do to capture the output of wget in php, without resorting to making wget log to a file?


#2

Whats wrong with using cURL?

:cool: [color=#6600CC]Atropos[/color] | openvein.org


#3

http://www.wiki.dreamhost.com/index.php/CURL

Mark


Save [color=#CC0000]$50[/color] on DreamHost plans using [color=#CC0000]PRICESLASH[/color] promo code (Click for DreamHost promo code details)