I\'m trying to download a file from an ftp server using curl and php but I can\'t find any documentation to help
$curl = curl_init();
curl_setopt($curl, CURL
Community response works with minor adjustment :
It appears that setting CURLOPT_FILE before setting CURLOPT_RETURNTRANSFER doesn't work, presumably because CURLOPT_FILE depends on CURLOPT_RETURNTRANSFER being set.
Quoting joeterranova's comment on this page: http://php.net/manual/fr/function.curl-setopt.php