cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: curl_setopt --ftp-account

From: Rainer Canavan <rainer.canavan_at_sevenval.com>
Date: Mon, 21 Dec 2015 11:48:44 +0100

On Fri, Dec 18, 2015 at 8:46 PM, Ted Kuo <ted_at_kblgroupintl.com> wrote:
> What is the paramater for curl_setopt() in PHP that corresponds to
> argument --ftp-account of CURL.EXE? I can't find it in PHP website, and
> account string in .netrc doesn't work. I am using Windows with PHP 5.4.
>
> Below command line is how I list files in particular FTPs site. It works but I
> need to do it with PHP. If this is not doable, please tell me how to do it
> with PHP+Socket operation, or anything works in PHP. Thanks.
> curl -u USER:PASS --ftp-account ACCT -3 -k ftps://SITE -o FILE.txt

Try adding --libcurl /tmp/foo.c to that command line. The constants used
in the resulting C source should have the same names as the ones you
need to use in PHP.

rainer
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2015-12-21