curl_exec

mixed curl_exec(int curld) 

Executes the operations that have been set up for the cURL session.

Returns:

FALSE on error; TRUE on success (but see description)

Description:

After a cURL session has been created with curl_init() and any necessary options have been set with curl_setopt(), this function causes the session to execute the transfer and any other associated actions.

By default, curl_exec() returns TRUE on success and FALSE on error.Any returned data is then typically written to the appropriate file pointer: STDOUT by default, or something else if set (for instance, with CURLOPT_FILE). However, if the CURLOPT_RETURNTRANSFER option has been set to TRUE with curl_setopt(), any data retrieved by the transfer operation will not ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.