If you are in safe mode, make sure to set safe_mode_exec_dir to the path where your curl executable is.
Mike
mike wrote:
I am able to succesfully run curl from the command line:
curl http://www.phpbuilder.com
returns the html of the page. However, I am unable to run it from with a script. The code:
exec("/usr/bin/curl http://www.phpbuilder.com",$return_message_array, $return_number);
does nothing. The array appears to contain no data. In fact, changing the path to the curl makes no difference. Ie. it does nothing regardless if I use /usr/bin/curl or /not/where/curl/is.
Any ideas of what to look for?
Thanks,
Michael