hi leute!
Ich hab reCaptcha installiert (dieses bekannte Sicherheitscaptcha) auf z.b. dieser Seite:
http://playze.bplaced.net/test.php
ich hab genau den testcode kopiert, aber hat man alles richtig eingegeben kommt ne fehlermeldung: "Could not open socket"
der code ist:
HTML
<html>
<body>
<form action="" method="post">
<?php
require_once('recaptchalib.php');
$publickey = "...";
$privatekey = "...";
# the response from reCAPTCHA
$resp = null;
# the error code from reCAPTCHA, if any
$error = null;
# are we submitting the page?
if ($_POST['submit']) {
$resp = recaptcha_check_answer ($privatekey,
$_SERVER['REMOTE_ADDR'],
$_POST['recaptcha_challenge_field'],
$_POST['recaptcha_response_field']);
if ($resp->is_valid) {
echo "You got it!";
# in a real application, you should send an email, create an account, etc
} else {
# set the error code so that we can display it. You could also use
# die ("reCAPTCHA failed"), but using the error message is
# more user friendly
$error = $resp->error;
}
}
echo recaptcha_get_html($publickey, $error);
?>
<br/>
<input type="submit" name="submit" value="submit" />
</form>
</body>
</html>
Alles anzeigen
ideen?
greetz