note 17014 added to function.curl-exec

From: Date: Thu, 22 Nov 2001 10:08:45 +0000
Subject: note 17014 added to function.curl-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-21144@lists.php.net to get a copy of this message
If You want to hide result which return curl_exec Use bufeered output. For example: ----------------------- $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://url.com/index.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "a=3&b=5"); //--- Start buffering ob_start(); curl_exec ($ch); //--- End buffering and clean output ob_end_clean(); curl_close ($ch); ------------------ maybe it help somebody :)) ---------- Best Regards Sharky -- http://www.php.net/manual/en/function.curl-exec.php http://master.php.net/manage/user-notes.php?action=edit+17014 http://master.php.net/manage/user-notes.php?action=delete+17014 http://master.php.net/manage/user-notes.php?action=reject+17014

« previous php.notes (#21144) next »