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: Thu, 24 Dec 2015 22:25:40 +0100

On Wed, Dec 23, 2015 at 11:40 PM, Ted Kuo <ted_at_kblgroupintl.com> wrote:
> Reply to myself as record in case someone has the same question.
>
> I tried Rainer's soluation to get foo.c to tell me it's curl_easy_setopt(hnd,
> CURLOPT_FTP_ACCOUNT, "ACCT"); for C. Daniel's mail says the same.
> Good. Let's try curl_setopt($hnd, CURLOPT_FTP_ACCOUNT, "ACCT"); in PHP.
>
> PHP Notice: Use of undefined constant CURLOPT_FTP_ACCOUNT.

That constant was added in curl 7.13.0. If you're using an older version
of curl from one of the long term support Linux distributions, the functionality
may still be available, but the constant won't show up in PHP:

#if LIBCURL_VERSION_NUM >= 0x070d00 /* Available since 7.13.0 */
REGISTER_CURL_CONSTANT(CURLOPT_FTP_ACCOUNT);
#endif

You can try using 134 instead of the constant to check if that works.

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