[eluser]Unknown[/eluser]
Hi guys,
New to php & codeigniter. My version is 2.1.2
I have successfully been able to use the captcha library given by codeigniter.
Below is my code.
Code:
$this->load->helper('captcha');
$vals = array('img_path'=> "./captcha",'img_url'=> base_url("captcha/"),'img_width'=> '150','img_height' => 30,'border' => 0,'expiration' => 7200, 'word'=>rand());
$cap = create_captcha($vals);
$captcha_image = $cap['image'];
$this->session->set_userdata('captcha_word', $cap['word']);
The issue is that I need the captcha images to be saved in a folder which is as in the same level of the application folder level instead saving inside the captcha folder I have created.
Any help is greatly appreciated.
I think it has something to do with the image path.
Cheers
Ela Buwa