Tweet, Share & Like [ EnAcCiOn ]

 

FeedBurner FeedCount Y Facebook | EnAcCiOn

Send Voicemail | EnAcCiOn

Contact me using vCita | EnAcCiOn

Contact me using vCita | EnAcCiOn

Meeting Scheduler Powered by vCita

lunes, 30 de marzo de 2015

Re: Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found

Jaam,Are you including other required class files which came along with the ReCaptcha.php file?I see in your code, you are including only one file. There are bunch of other classes you have to include with require_once such as ReCaptcha\RequestMethod\Post.phpReCaptcha\Response.phpReCaptcha\RequestParameter.php, etc.Please check the package you downloaded.AnuOn Sunday, March 15, 2015 at 1:58:57 PM UTC-4, Jaam wrote: I've downloaded v2 and I'm getting this error when trying to validate the response.I'm running this locally but have also received the same error on the real server.My code is pretty much copy/paste from google if (!empty($human)) { require_once('Captcha/); $recaptcha = new \ReCaptcha\ReCaptcha($secret); $resp = $recaptcha->verify($human, $remoteIp); if ($resp->isSuccess()) { // verified! } else {}else{} -- You received this message because you are subscribed to the Google Groups "reCAPTCHA" group. To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+unsubscribe@googlegroups.com. To post to this group, send email to recaptcha@googlegroups.com. Visit this group at http://bit.ly/1dkFnYd. For more options, visit http://bit.ly/P65DvS.

No hay comentarios:

EnAcCiOn

Contador Web | EnAcCiOn

EnAcCiOn

EnAcCiOn

EnAcCiOn

Blog Archive | EnAcCiOn