note 9310 added to curl_setopt

From: Date: Fri, 27 Oct 2000 12:08:25 +0000
Subject: note 9310 added to curl_setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-7059@lists.php.net to get a copy of this message
The documentation is a little deceptive here. The option argument is listed as having type "string", but this is not correct. The actual argument should be a constant (ie, a string WITHOUT quotes). So... curl_setopt($c, CURLOPT_VERBOSE, 1); works, while curl_setopt($c, "CURLOPT_VERBOSE", 1); will silently fail, and you will scratch your head and wonder why your server is ignoring your instructions... http://www.php.net/manual/function.curl-setopt.php

« previous php.notes (#7059) next »