• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Captcha using

#1
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.