[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."