Home > PHP > Function > cURL > curl_multi_exec()

curl_multi_exec()

curl_multi_exec - Run the sub-connections of the current cURL handle

Syntax

int curl_multi_exec (resource $mh, int &$still_running)

Arguments

  • mh - A cURL multi handle returned by curl_multi_init().
  • still_running - A reference to a flag to tell whether the operations are still running.

Description

Processes each of the handles in the stack. This method can be called whether or not a handle needs to read or write data.

Version

PHP 5

Return value

A cURL code defined in the cURL Predefined Constants.