note 45653 modified in ref.curl by danbrown

From: Date: Sun, 17 May 2009 19:42:25 +0000
Subject: note 45653 modified in ref.curl by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155255@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: <?php curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); ?> And then, <?php $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. --was-- 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. http://php.net/manual/en/ref.curl.php

« previous php.notes (#155255) next »