Query: curl_multi_strerror
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CURL_MULTI_STRERROR(3) 1 CURL_MULTI_STRERROR(3) curl_multi_strerror - Return string describing error codeSYNOPSISstring curl_multi_strerror (int $errornum)DESCRIPTIONReturns a text error message describing the given CURLM error code.PARAMETERSo $errornum - One of the CURLM error codes constants.RETURN VALUESReturns error string for valid error code, NULL otherwise.EXAMPLESExample #1 curl_multi_strerror(3) example <?php // Create cURL handles $ch1 = curl_init("http://example.com"/); $ch2 = curl_init("http://php.net/"); // Create a cURL multi handle $mh = curl_multi_init(); // Add the handles to the multi handle curl_multi_add_handle($mh, $ch1); curl_multi_add_handle($mh, $ch2); // Execute the multi handle do { $status = curl_multi_exec($mh, $active); // Check for errors if($status > 0) { // Display error message echo "ERROR! " . curl_multi_strerror($status); } } while ($status === CURLM_CALL_MULTI_PERFORM || $active); ?>SEE ALSOcurl_strerror(3), cURL error codes. PHP Documentation Group CURL_MULTI_STRERROR(3)
Related Man Pages |
---|
curl_multi_add_handle(3) - centos |
curl_multi_exec(3) - php |
curl_reset(3) - php |
curl_multi_close(3) - php |
curl_share_init(3) - php |
Similar Topics in the Unix Linux Community |
---|
cURL and cgi |
Using cURL to save online search results |
cURL and variables |
Register account using cURL |
How to include cURL library? |