Re: Help please: CURL lib appends '0' (zero) to all output

From: Michael Fuhr (mfuhr_at_fuhr.org)
Date: 12/23/03

  • Next message: Kristof Goossens: "strtolower wont do his job"
    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/
    

  • Next message: Kristof Goossens: "strtolower wont do his job"

    Relevant Pages

    • Re: Help please: CURL lib appends 0 (zero) to all output
      ... Eagle writes: ... I am experiencing a problem: ... > I seem to be unable to get rid of it. ... > Script 2 then processes the data and generates the output. ...
      (comp.lang.php)
    • Re: rsync or even scp questions....
      ... The following sh script ... If what you wish to do is simply get rid of /usr in a string, ... (I've seen ksh chopping from the RHS; I wrote a short C util to ...
      (freebsd-questions)
    • Re: Palm Desktop & Entourage->Address Book/iCal/Mail.app
      ... experiencing is directly attributable to this mismatch in fields. ... Though it did take longer than I expected for the To Dos to appear in iCal, ... I think that the real sluggishness I experienced may very well have been the ... and the script was struggling with what to do with the ...
      (comp.sys.mac.apps)
    • Re: Converting Eagle scripts between version 4.16 and version 4.09
      ... I have drawn up a schematic using the freeware version of Eagle, ... load or use a netscript to simply load up my schematic in the old ... the scripts between these versions so I can save as a script in 4.16, ...
      (sci.electronics.cad)
    • Re: Gerber to G-Code, Help needed.
      ... perfectly from eagle but i'll like to be able to import a gerber file, ... then convert to G-Code. ... A couple months ago I wrote a similar script in the TCL language. ... set diam [expr ] ...
      (sci.electronics.cad)