![](/img/trans.png)
[英]Format URL using PHP - http://www.google.com to www.google.com/; Also having trouble with str_replace()
[英]PHP Recaptcha Form only Works with IP Address instead of www.google.com
如标题中所述。 我的Recaptcha表单仅在以下情况下有效:
define("RECAPTCHA_VERIFY_SERVER", "www.google.com");
对此:
define("RECAPTCHA_VERIFY_SERVER", "74.125.236.178");
我正在使用myhosting.com vps linux服务器。 知道为什么它不适用于www.google.com吗?
解决此问题的方法是,
//line 40 in recpatchalib.php and replace:
define("RECAPTCHA_VERIFY_SERVER", "api-verify.recaptcha.net");
// With this:
define("RECAPTCHA_VERIFY_SERVER", gethostbyname('api-verify.recaptcha.net'));
试试吧。
从“ 问题”页面获得。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.