note 66473 deleted from function.curl-setopt-array by didou
| From: | didou@php.net | Date: | Tue, 16 Jan 2007 23:37:33 +0000 |
| Subject: | note 66473 deleted from function.curl-setopt-array by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121817@lists.php.net to get a copy of this message | ||
Note Submitter: darkelder at php dot net
----
Prior to PHP 5.1.4 you can simulate 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;
}
}
?>