0
htmlファイルを対応するにはあまりにも時間がかかったがindex.phpを呼ばれるPHPページにリダイレクトし、index.phpのは、GoogleのPHP - それはページがかかりすぎたことを示していた場合、ページのロードページが
<?php
require_once "recaptchalib.php";
// Register API keys at https://www.google.com/recaptcha/admin
$siteKey = "*";
$secret = "*";
// reCAPTCHA supported 40+ languages listed here: https://developers.google.com/recaptcha/docs/language
$lang = "en";
// The response from reCAPTCHA
$resp = null;
// The error code from reCAPTCHA, if any
$error = null;
$reCaptcha = new ReCaptcha($secret);
// Was there a reCAPTCHA response?
if ($_POST["g-recaptcha-response"]) {
$resp = $reCaptcha->verifyResponse(
$_SERVER["REMOTE_ADDR"],
$_POST["g-recaptcha-response"]
);
}
if ($resp != null && $resp->success) {
require_once 'gmail.php';
}else{
header('Location: ../failed.html');
}
?>
からのreCAPTCHAのPHPファイルであります返事する。ウェブアドレスはまだexample.com/php/index.phpです。私はxamppと別のウェブサイトでこれをやってきました。理由は何でしょうか?ウェブホストに連絡する必要がありますか?
エラーが発生したコード行を知る方法はありますか?
編集:私のsiteKeyとsecretkeyがあります。私はあなたのスクリプトの先頭にこれを入れ、PHPエラーを表示するには、この場合に