Re: Help please: CURL lib appends '0' (zero) to all output
From: Michael Fuhr (mfuhr_at_fuhr.org)
Date: 12/23/03
- Previous message: BRE: "Can enyone help me with this "problem" unexpected T_STRING"
- In reply to: Eagle: "Help please: CURL lib appends '0' (zero) to all output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Dec 2003 13:02:14 -0700
Eagle <eagleflyer2@lycos.com> writes:
> I'm using the wonderful CURL lib to handle data between php-scripts in
> the background. However, I am experiencing a problem: Whenever the
> processed data is returned for output I see a '0' (zero) appended to
> it.
> I seem to be unable to get rid of it. I don't even know where this
> zero comes from and why it is there. Any help greatly appreciated.
>
> A simple example:
>
> 1.)
> Script 1 handles some data (e.g. some form input) and sends it to
> script 2.
>
> 2.)
> Script 2 then processes the data and generates the output.
>
> I always see the output like this: output0
Are you doing something like "echo curl_exec($ch);" without setting
the CURLOPT_RETURNTRANSFER option to non-zero value? If so, then
you're printing the return value of curl_exec() after it prints its
own output.
-- Michael Fuhr http://www.fuhr.org/~mfuhr/
- Previous message: BRE: "Can enyone help me with this "problem" unexpected T_STRING"
- In reply to: Eagle: "Help please: CURL lib appends '0' (zero) to all output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|