Captcha Code Case Sensitiveness in Codeigniter -


How to set up a captcha code in uppercase Whether there is even more help in addition to the codeigner for their collision.

To create a captcha with uppercase characters, something like this is needed:

  $ vals = array ('word' = & gt; strtoupper ('random word'), // here is the captcha code uppercase 'converted to img_path' = & gt; './captcha/ ',' Img_url '= & gt;' http://example.com/captcha/ ',' font_path '= & gt;' ./path/to/fonts/texb.ttf ',' Img_width '= & gt; '150', 'img_height' => 30, 'expiration' => 7200); $ Cap = create_captcha ($ vals); Countercap $ cap ['image'];   

Of course you may have to check the SQL while checking and it may need to check for the uppercase version of your random word in the database.

Comments