curl-and-php
Re: Problems using PHP CURL option CURLOPT_READFUNCTION
Date: Fri, 1 Aug 2003 10:01:25 +0200 (CEST)
On Fri, 1 Aug 2003, Stefan Hadjistoytchev wrote:
> I would like to transfer a file to ftp site using Curl.
>
> As stated in the PHP Curl FAQ:
> ****************************
> 5.5 Does CURLOPT_FILE and CURLOPT_INFILE work on win32 ?
> Yes, but you cannot open a FILE * and pass the pointer to a DLL and have
> that DLL use the FILE *. If you set CURLOPT_FILE you must also use
> CURLOPT_WRITEFUNCTION as well to set a function that writes the file, even
> if that simply writes the data to the specified FILE*. Similarly, if you use
> CURLOPT_INFILE you must also specify CURLOPT_READFUNCTION.
> ****************************
>
> I have no idea how the function specified in CURLOPT_READFUNCTION option
> should look like !?!
I have no idea either. I can see in the PHP/CURL source code that the option
is supported fine, but I am clueless when it comes to PHP and can't tell you
how it is supposed to be used.
This is an obvious case when the C interface docs is not sufficiant for
PHP/CURL users...
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01Received on 2003-08-01