note 117810 rejected from function.curl-multi-getcontent by cmb
| From: | cmb@php.net | Date: | Thu, 13 Aug 2015 13:06:18 +0000 |
| Subject: | note 117810 rejected from function.curl-multi-getcontent by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203333@lists.php.net to get a copy of this message | ||
Note Submitter: pklim101 at 163 dot com
----
If I don't add the code bellow:
$active = null;
//execute the handles
do {
$mrc = curl_multi_exec($mh, $active);
}
while ($mrc == CURLM_CALL_MULTI_PERFORM);
while ($active && $mrc == CURLM_OK) {
if (curl_multi_select($mh) != -1) {
do {
$mrc = curl_multi_exec($mh, $active);
} while ($mrc == CURLM_CALL_MULTI_PERFORM);
}
}
I wantn't get the output by function curl_multi_getcontent($ch).
but why?