download a file from ftp using curl and php

前端 未结 6 1635
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 03:32

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         


        
6条回答
  •  借酒劲吻你
    2020-11-30 04:08

    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

提交回复
热议问题