note 45653 added to ref.curl

From: Date: Tue, 14 Sep 2004 09:31:13 +0000
Subject: note 45653 added to ref.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-76660@lists.php.net to get a copy of this message
In recent versions of php, CURLOPT_MUTE has (probably) been deprecated. Any attempt of using curl_setopt() to set CURLOPT_MUTE will give you a warning like this: PHP Notice: Use of undefined constant CURLOPT_MUTE - assumed 'CURLOPT_MUTE' in .... If you wish tu silence the curl output, use the following instead: curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); And then, $curl_output=curl_exec($ch); The output of the curl operation will be stored as a string in $curl_output while the operation remains totally silent. ---- Manual Page -- http://www.php.net/manual/en/ref.curl.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45653 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45653&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45653&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76660) next »