ReCaptcha-无法打开插座 [英] ReCaptcha - Could not open socket

查看:65
本文介绍了ReCaptcha-无法打开插座的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我问这个问题之前,我要提一提,我知道网站上确实有几个完全相同的问题,但恐怕它们不能帮我解决问题。

昨天我的ReCaptcha工作正常,但现在不行了。我正在使用Google提供的库并使用正确的代码。自昨天以来,我没有更改任何代码,因此它仍然可以正常工作。但是,当我现在尝试提交表单时,页面返回无法打开套接字

Yesterday my ReCaptcha was working fine but now it's not. I am using the library provided by Google and using the proper code. I did not change any code since yesterday so it should still work. However, when I try to submit the form now the page returns Could not open socket.

编辑:我只是检查并在我的服务器上启用 fsockopen

I just checked and fsockopen is enabled on my server.

推荐答案

更改了以下内容:

define("RECAPTCHA_VERIFY_SERVER", "www.google.com");

define("RECAPTCHA_VERIFY_SERVER", "74.125.227.48");

现在可以使用了。这将在验证码lib php文件 recaptchalib.php 中进行编辑。

Now it works. This is to be edited in the captcha lib php file recaptchalib.php.

这篇关于ReCaptcha-无法打开插座的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆