Using codeigniter to execute code from another file -


i new codeigniter , used old school php scripting i'll need this:

i want include captcha system in 1 of forms. according documentation, generate image, need this:

<img id="captcha" src="/securimage/securimage_show" alt="captcha image" /> 

i downloaded files, put them? , how use codeigniter call securimage_show.php file? , output contents src attribute of image?

when adding captcha in fuel (a codeigniter based cms), i've put php file generates captcha image in folder put images, link same way link image:

<?php echo img(array('src'=>'image_show.php', 'alt'=> 'captcha image')); ?> 

perhaps not nicest solution, works.

alternatively, use captcha plugin written codeigniter, such nucaptcha codeigniter plugin, http://docs.nucaptcha.com/plugins/codeigniter.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -