Closed mgilberties closed 5 years ago
this is easy way without changing many thing
private function _submitHTTPGet($data) { $arrContextOptions=array( "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false, ), );
$url = self::site_verify_url.'?'.http_build_query($data);
$response = file_get_contents($url, false, stream_context_create($arrContextOptions));
return $response;
}
Due to my restrictions on a shared server, I am unable to run file_get_contents or even set
Therefore I had to edit the library file: CodeIgniter-reCAPTCHA/libraries/Recaptcha.php
My changes aren't very clean, but could the concept be used to detect lack of support and use CURL instead?
Feedback much appreciated.