Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP curl_error Function

PHP curl_error Function

PHP Calendar Reference Manual PHP cURL Reference Manual

(PHP 4 >= 4.0.3, PHP 5)

curl_error — Return a string describing the last error for the current session


Description


string curl_error ( resource $ch )

Returns a clear text error message for the last cURL operation.


Parameters

** ch**

A cURL handle returned by curl_init().


Return Value

Returns the error message, or '' (empty string) if no error occurred.


Example




See Also


PHP Calendar Reference Manual PHP cURL Reference Manual