Could you describe it in examples, please?
A:
It is used with curl_setopt
function.
CURLOPT_WRITEFUNCTION
is the name of a callback function where the callback function takes two parameters. The first is the cURL resource, and the second is a string with the data to be written. The data must be written by using this callback function. Must return the exact number of bytes written or this will fail.
Sarfraz
2010-02-19 05:53:43
What does this mean: "Must return the exact number of bytes written or this will fail"?
MrY
2010-02-19 05:57:02
How's that? What is the exact number of bytes written?
MrY
2010-02-19 05:57:49
see this for an example of that answer: http://download1.parallels.com/Plesk/Expand/2.1.0-Release1/doc/expand-integrate-guide/17009.htm
Sarfraz
2010-02-19 06:04:03
and yes you are right, it must return exact bytes.
Sarfraz
2010-02-19 06:07:25
what exact bytes?
MrY
2010-02-19 06:09:50
And what for does it have to return the exact bytes? What's useful about it?
MrY
2010-02-19 06:12:35
i think you should have a look at the example usage link i posted in my prevoius comments to get more idea about it and there are furnther explanations at the bottom of that page, Thanks
Sarfraz
2010-02-19 06:16:57
Thanks. I saw. But what's useful about it?
MrY
2010-02-19 06:30:51