By default, the curl extension prints out the result.
You need to enable the CURLOPT_RETURNTRANSFER option, like so:
After that option is enabled, curl_exec will return the result, instead.
You need to enable the CURLOPT_RETURNTRANSFER option, like so:
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
After that option is enabled, curl_exec will return the result, instead.
No comments:
Post a Comment