Recaptcha 无法在本地运行
编码绝对没有错误,只是本地似乎不起作用,但在线上却完美地工作。出于开发目的,让它在本地工作很重要。不是表单提交,而是页面显示。
关于我如何使验证码在本地工作的任何想法。
谢谢 让
There is absolutely no errors in coding, it just does not seem to work locally, but works perfectly online. It is important I get it working locally because of development purposes. Not form submission, but page display.
Any ideas on how I cam make the recaptcha to work locally.
Thanks
Jean
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Recaptcha 是一项在线网络服务,因此它只能在线运行。
您无法使其离线工作。
编辑:
您的问题似乎不是您的互联网连接,而是 PHP 错误,因为您的评论谈到了“白页”。请在网络(或 stackoverflow)中搜索“php 白页”以获取调试说明。
Recaptcha is an online web service, thus it will work only online.
You cannot make it work offline.
Edit:
Your problem seems not to be your internet connection but a PHP error, since your comment talks about a "white page". Please search the web (or stackoverflow) for "php white page" to get debugging instructions.
您是否使用 XAMPP,如果是,我发现如果您将文件放在 XAMPP 文件夹中的 htdocs 中,则 recaptcha 可以工作。据谷歌称,他们的验证码将在本地主机上运行。我确信有比我所拥有的更合乎逻辑的解决方案,但这对我有用,希望它也对您有帮助。
Are you using XAMPP, if so, I found that if you put your files in htdocs in XAMPP folder the recaptcha works. According to google, their recaptcha will work on localhost. I'm sure there's a lot more logical solution than what I have, but this is what worked for me, hope it helps you too.