note 125231 added to function.curl-errno
| From: | cubefox at web dot NOSPAMPLEASE dot de | Date: | Thu, 30 Jul 2020 12:08:14 +0000 |
| Subject: | note 125231 added to function.curl-errno | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214913@lists.php.net to get a copy of this message | ||
The manual above only mentions how to get an error description from the cURL handle ($ch) using
curl_error():
<?php
$description = curl_error($ch);
?>
But you can also get a description from the error number itself using curl_strerror():
<?php
$description = curl_strerror(curl_errno($ch));
?>
The latter can be useful if you only have access to the error number but not to the cURL handle.
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.167.36 (proxied: 80.81.18.45)
----
Manual Page -- http://php.net/manual/en/function.curl-errno.php
Edit -- https://master.php.net/note/edit/125231
Del: integrated -- https://master.php.net/note/delete/125231/integrated
Del: useless -- https://master.php.net/note/delete/125231/useless
Del: bad code -- https://master.php.net/note/delete/125231/bad+code
Del: spam -- https://master.php.net/note/delete/125231/spam
Del: non-english -- https://master.php.net/note/delete/125231/non-english
Del: in docs -- https://master.php.net/note/delete/125231/in+docs
Del: other reasons-- https://master.php.net/note/delete/125231
Reject -- https://master.php.net/note/reject/125231
Search -- https://master.php.net/manage/user-notes.php