Func Curl_Multi_Exec
# PHP curl_multi_exec Function
[ PHP cURL Reference Manual](#)
(PHP 5)
curl_multi_exec β Execute sub-connections of the current cURL handle
* * *
## Description
int curl_multi_exec ( resource $mh , int &$still_running )
Processes each handle in the stack. This method can be called regardless of whether the handle needs to read or write data.
* * *
## Parameters
**mh**
The cURL multi handle returned by curl_multi_init().
**still_running**
A reference to a variable used to determine if the operation is still executing.
* * *
## Return Value
A cURL code defined in the cURL predefined constants.
**Note:** This function only returns errors related to the entire batch stack. Even if CURLM_OK is returned, individual transfers may still have problems.
* * *
## Example
This example will create 2 cURL handles, add them to a batch handle, and then run them in parallel.
* * PHP cURL Reference Manual](#)
YouTip