CodeIgniter Forums
Captcha using - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Captcha using (/showthread.php?tid=45508)



Captcha using - El Forum - 09-24-2011

[eluser]someone Smile[/eluser]
Hello!

I have some problems with CAPTCHA library, because I don't know how to configurate it. In my view I just use this code:
Code:
<?php
$vals = array(
'word' => 'Random word',
'img_path' => './captcha/',
'img_url' => base_url("captcha/"),
'img_width' => '150',
'img_height' => 30,
'expiration' => 7200
);

$cap = create_captcha($vals);
echo $cap['image'];
?>

But I don't know where I must create the folder captcha (for image path). When I use this code I can't get image where is captcha.

What I must do?

Thanks in advance! :-)

EDIT: I have loaded library in controller.