Tutorialsplane.com
Try Full Screen Mode
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Captcha extends CI_Controller { public function generateCaptcha(){ $this->load->helper('captcha'); $val = array( 'word' => rand(1000, 10000), 'img_path' => './captcha/', 'img_url' => 'http://tutorialsplane.com/runtest/codeigniter/demo/captcha/', 'font_path' => 'arial.ttf', 'img_width' => '200', 'img_height' => 50, 'expiration' => 7200, 'word_length' => 7, 'font_size' => 20, 'img_id' => 'Imageid', 'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 'colors' => array( 'background' => array(255, 255, 255), 'border' => array(255, 255, 255), 'text' => array(0, 0, 0), 'grid' => array(255, 40, 40) ) // background : White // border: White //Text: black text and red grid ); $captcha = create_captcha($val); echo $captcha['image']; } } ?>