curl_multi_exec
PHP 5, PHP 7, PHP 8
curl_multi_exec - Run the sub-connections of the current cURL handle
Manual
curl_multi_exec(
CurlMultiHandle$multi_handle,
intstill_running ): int
Processes each of the handles in the stack. This method can be called whether or not a handle needs to read or write data.
Parameters
- multi_handle
A cURL multi handle returned by curl_multi_init.
- still_running
-
A reference to a flag to tell whether the operations are still running.
Return Values
A cURL code defined in the cURL Predefined Constants.
Note:
This only returns errors regarding the whole multi stack. There might still have occurred problems on individual transfers even when this function returns CURLM_OK.
Changelog
Version | Description |
8.0.0 | multi_handle expects a CurlMultiHandle instance now; previously, a resource was expected. |