[eluser]luisfmgoncalves[/eluser]
Hello guys.
So, I'm having this issue with the create_captcha function.
I have 2 machines with my application: a Centos machine (the main server) and a Ubuntu machine (the development machine).
In the Ubuntu machine everything is working ok, but in the Centos machine I get a Database error. I followed the CAPTCHA Helper in the User guide and my code is something like this:
Code:
$vals = array(
'img_path' => './captcha/',
'img_url' => base_url() . 'captcha/',
'img_width' => 150,
'img_height' => 30
);
$cap = create_captcha($vals); ---> error
But I got a Database error in the create_captcha function:
Code:
Column 'captcha_time' cannot be null
insert into captcha(captcha_time, ip_address, word) values (NULL,'xx.xx.xx.xxx',NULL)
The function is failing because something is wrong with the paths in Centos, I guess.
The images will be stored in a folder captcha in the root of my project. I changed the permissions of that folder for
drwxrwxrwx.
Any clues of what might be wrong?
Thanks,
Luis
PS:
CentOS release 5.5 (Final)
mysql Ver 14.14 Distrib 5.1.44
nginx/0.7.65