note 66473 added to function.curl-setopt-array
| From: | darkelder@php.net | Date: | Tue, 23 May 2006 18:44:15 +0000 |
| Subject: | note 66473 added to function.curl-setopt-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111894@lists.php.net to get a copy of this message | ||
To PHP 5.1.2 and above you can simulte this function with:
<?php
if (!function_exists('curl_setopt_array')) {
function curl_setopt_array(&$ch, $curl_options)
{
foreach ($curl_options as $option => $value) {
if (!curl_setopt($ch, $option, $value)) {
return false;
}
}
return true;
}
}
?>
----
Server IP: 200.185.109.103
Probable Submitter: 201.66.133.11
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt-array.php
Edit -- http://master.php.net/note/edit/66473
Del: integrated -- http://master.php.net/note/delete/66473/integrated
Del: useless -- http://master.php.net/note/delete/66473/useless
Del: bad code -- http://master.php.net/note/delete/66473/bad+code
Del: spam -- http://master.php.net/note/delete/66473/spam
Del: non-english -- http://master.php.net/note/delete/66473/non-english
Del: in docs -- http://master.php.net/note/delete/66473/in+docs
Del: other reasons-- http://master.php.net/note/delete/66473
Reject -- http://master.php.net/note/reject/66473
Search -- http://master.php.net/manage/user-notes.php