After struggling for half a day, I finally manage to get reCAPTCHA to work by converting this function:
function _recaptcha_http_post($host, $path, $data, $p
Woah,
if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
die ("Could not open socket");
}
That doesn't make any sense surely. Try:
$fs = fsockopen($host, $port, $errno, $errstr, 10); // @ ignores errors
if(!$fs) die ("Could not open Socket");
Also Skype also blocks port 80 sometimes.