<?php session_start(); // captcha class uses session to hold captcha security code include "class.captcha.php"; $cap = new Captcha(); // instantiate Captcha class /* then, customize captcha image if required */ $cap->setBGColor(255,0,0); // sets background color of image $cap->setTextColor(0,255,0); // sets the text color $cap->setSize(100,40); // sets the image size. /* all the above methods are optional */ $cap->showImage(); // outputs captcha image. ?>