您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

curl_error

(PHP 4 >= 4.0.3, PHP 5)

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

说明

string curl_error ( resource $ch )

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

参数

ch

A cURL handle returned by curl_init().

返回值

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