cURL / Mailing Lists / curl-and-php / Single Mail


RE: nothing in $output var

From: Broekhuis,Robert R. <>
Date: Tue, 28 Aug 2007 10:12:22 -0400

You need to set CURLOPT_RETURNTRANSFER to 1.


[] On Behalf Of neugi
Sent: Tuesday, August 28, 2007 10:07 AM
Subject: nothing in $output var


im new to curl and i've a little problem. i wrote this scritp.

$handle = curl_init();

        $url = "

        curl_setopt($handle, CURLOPT_URL, $url);

        $output = curl_exec($handle);

        //store $output in a db


now my problem is that no string is in the output var, and the script is
printing the result on the screen and the value in the $output is '1',

what i'm doing wrong?


Received on 2007-08-29