curl_multi_strerror

(PHP 5 >= 5.5.0, PHP 7) Return string describing error code string curl_multi_strerror ( int $errornum ) Returns a text error message describing the given CURLM error code. Parameters: errornum One of the » CURLM error codes constants. Returns: Returns error string for valid error code, NULL otherwise.

curl_multi_setopt

(PHP 5 >= 5.5.0, PHP 7) Set an option for the cURL multi handle bool curl_multi_setopt ( resource $mh, int $option, mixed $value ) Parameters: mh option One of the CURLMOPT_* constants. value The value to be set on option. value should be an int for the following values of the option parameter: Opti

curl_multi_select

(PHP 5, PHP 7) Wait for activity on any curl_multi connection int curl_multi_select ( resource $mh [, float $timeout = 1.0 ] ) Blocks until there is activity on any of the curl_multi connections. Parameters: mh A cURL multi handle returned by curl_multi_init(). timeout Time, in seconds, to wait for a response. Returns

curl_multi_remove_handle

(PHP 5, PHP 7) Remove a multi handle from a set of cURL handles int curl_multi_remove_handle ( resource $mh, resource $ch ) Removes a given ch handle from the given mh handle. When the ch handle has been removed, it is again perfectly legal to run curl_exec() on this handle. Removing the ch handle while being used, will effectively halt the transfer in progress involving that handle. Parameters:

curl_multi_init

(PHP 5, PHP 7) Returns a new cURL multi handle resource curl_multi_init ( void ) Allows the processing of multiple cURL handles asynchronously. Returns: Returns a cURL multi handle resource on success, FALSE on failure. Examples: curl_multi_init() example This example will create two cURL handles, add them to a multi handl

curl_multi_info_read

(PHP 5, PHP 7) Get information about the current transfers array curl_multi_info_read ( resource $mh [, int &$msgs_in_queue = NULL ] ) Ask the multi handle if there are any messages or information from the individual transfers. Messages may include information such as an error code from the transfer or just the fact that a transfer is completed. Repeated calls to this function will return a new result each time, until

curl_multi_getcontent

(PHP 5, PHP 7) Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set string curl_multi_getcontent ( resource $ch ) If CURLOPT_RETURNTRANSFER is an option that is set for a specific handle, then this function will return the content of that cURL handle in the form of a string. Parameters: ch A cURL handle returned by curl_init(). Returns:

curl_multi_exec

(PHP 5, PHP 7) Run the sub-connections of the current cURL handle int curl_multi_exec ( resource $mh, int &$still_running ) 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: mh A cURL multi handle returned by curl_multi_init(). still_running A referen

curl_multi_close

(PHP 5, PHP 7) Close a set of cURL handles void curl_multi_close ( resource $mh ) Closes a set of cURL handles. Parameters: mh A cURL multi handle returned by curl_multi_init(). Returns: No value is returned. Examples: curl_multi_close() example This example will create tw

curl_multi_add_handle

(PHP 5, PHP 7) Add a normal cURL handle to a cURL multi handle int curl_multi_add_handle ( resource $mh, resource $ch ) Adds the ch handle to the multi handle mh Parameters: mh A cURL multi handle returned by curl_multi_init(). ch A cURL handle returned by curl_init(). Returns: Returns 0 on success, or one of the C