$_ch
$_ch : Object
A cURL handle created when the object is constructed
cURL Class
This class is used to provide an object wrapper around cURL
strerror(integer $errornum) : string
Return string describing the given error code
integer | $errornum | One of the cURL error codes constants |
Returns error description or NULL for invalid error code.
file_create(string $filename, string $mimetype = '', string $postname = '') : \CURLFile
Create a CURLFile object
string | $filename | Path to the file which will be uploaded |
string | $mimetype | Mimetype of the file |
string | $postname | Name of the file to be used in the upload data |
Returns a CURLFile object
exec() : boolean|mixed
This function should be called after initializing a cURL session and all the options for the session are set
Returns TRUE on success or FALSE on failiure. However, if the CURLOPT_RETURNTANSFER option is set, it will return the result on success, FALSE on failiure
getinfo(integer $opt) : mixed|array|boolean
Get information regarding a specific transfer
integer | $opt | This may be one of the following constants:
|
If opt is given, returns it's value. Otherwise, returns an associative array with the following elements(which correspond to opt), or FALSE on failiure:
setopt_array(array $options) : boolean
Set multiple options for a cURL transfer
array | $options | An array specifying which options to set and their values. The keys should be valid curl_setopt() constants or their integer equivalents. |
Returns TRUE if all options were successfully set. If an option could not be successfully set, FALSE is immediately returned, ignoring any future options in the $options
array.