This is the warning.
Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or
That seems to work correctly with safe_mode
.
To check CURL, you can either look for it in the loaded extensions (as you did), or simply:
function_exists('curl_init');
With regards to the error message, I'm not sure what you're asking. Do you want to suppress the error message?
You can do something like:
$old=error_reporting(0); // turn off error reporting
// do whatever that causes errors
error_reporting($old); // turn it back on