[thelist] cURL, PHP and downloading files SOLVED

Jay Blanchard jay.blanchard at niicommunications.com
Wed Jul 3 12:14:01 CDT 2002


[snip]
exec("curl -d \"name=myname&password=mypassword&btnsubmit=submit\" -s -o
cdrlist.html https://theserver.com/list.html");

but why can't I do this

exec("curl -d \"name=myname&password=mypassword&btnsubmit=submit\" -s -o
".$listline." https://theserver.com/download/".$listline."");
[/snip]

To make this work consistantly the full path to cURL has to be used in the
exec function, i.e.

exec("/full/path/to/curl -d
\"name=myname&password=mypassword&btnsubmit=submit\" -s -o
".$listline." https://theserver.com/download/".$listline."");

Jay

"Sometimes the smallest things will get you."
"Don't overcomplicate."





More information about the thelist mailing list