Hello I have a script the uses cURL, It can be executed in many different hosts I don't know it's configuration. I have a check script, but I still get cURL errors in some hosts.
My script
if (!in_array('curl', get_loaded_extensions())) {
// bad configuration message goes here, exit the app
}
Error I get in some hosts:
Warning: curl_exec() has been disabled for security reasons
My question is how should I code my script to fully check cURL availability in the server
Thks