note 25846 added to function.curl-setopt

From: Date: Tue, 08 Oct 2002 20:42:32 +0000
Subject: note 25846 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-37809@lists.php.net to get a copy of this message
note: if your option comes from a variable eg: $option = "CURLOPT_RETURNTRANSFER"; $value = "1"; this will fail: curl_setopt($ch,$option,$value); because the curl option is a constant. use the function constant() to get the value: curl_setopt($ch,constant($option),$value); -- http://www.php.net/manual/en/function.curl-setopt.php http://master.php.net/manage/user-notes.php?action=edit+25846 http://master.php.net/manage/user-notes.php?action=delete+25846 http://master.php.net/manage/user-notes.php?action=reject+25846

« previous php.notes (#37809) next »