Archives for "CodeIgniter"
5
reCAPTCHA plugin for php codeigniter
I’m playing around with codeigniter frameworks these days. One of my client requested to put reCAPTCHA into CI frameworks. So, I have tried to convert from original reCAPTCHA php plug-in to codeigniter library. So, I would like to share this library. I hope it useful for someone.
To use this library, you just need to follow by under following instruction :
Firstly, you have to move Recaptcha.php file into CI file structure system/application/libraries/
Use following code to load that library -
$this->load->library('recaptcha');
Then you have to set keys. Sometime you just need to set only one public key. So, just set public key only.
To set the keys
// Get a key from https://www.google.com/recaptcha/admin/create
$this->recaptcha->set_key ('XXXXXXXXXX Key XXXXXXXXX' ,'public') // For public key
$this->recaptcha->set_key ('XXXXXXXXXX Key XXXXXXXXX' ,'private') // For private key
Made by Symmetric Web
Distributed by Smashing Magazine