gimwogus / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

Rewritten PHP Class #142

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hey There

I have rewritten the php plugin for ReCaptcha. The new Version is oop and uses 
curl for requests. It can handle a proxy and has an easy method for new users 
to implement the class.

The ReCaptcha is testet by me on a non-proxy and on a proxy server. The 
MailHide-functions have not been tested by me!

Example:

<?
$public = '';
$private = '';
$recaptcha = new ReCaptcha($public, $private);

$response = $recaptcha->autoCheckAnswer('post'); //or get

if ($response === null) {
    //no request fired
} else if ($response->isValid()) {
   //request valid
} else {
   //request invalid
}
?>

Example with proxy:

<?
$public = '';
$private = '';
$recaptcha = new ReCaptcha($public, $private, '0.0.0.0', 80);
?>

I didnt find another place to post my class, so i posted it here. Please
contact me if you have questions.

Best Wishes

Chris

Original issue reported on code.google.com by wuethric...@gmail.com on 22 Jun 2012 at 10:13

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Rewrote as static class.

https://github.com/Tatsh/recaptcha5

Original comment by audvare on 3 Sep 2012 at 7:16