public function show($background_image = '')
    {
        set_error_handler(array(&$this, 'errorHandler'));

        if($background_image != '' && is_readable($background_image)) {
            $this->bgimg = $background_image;
        }

        $this->doImage();
    }
public function show($background_image = '')
    {
        set_error_handler(array(&$this, 'errorHandler'));

        if($background_image != '' && is_readable($background_image)) {
            $this->bgimg = $background_image;
        }

        $this->doImage();
    }
public function show ( $ background_image = '' ) { set_error_handler ( array ( & $ this , 'errorHandler' ) ) ; if ( $ background_image != '' && is_readable ( $ background_image ) ) { $ this -> bgimg = $ background_image ; } $ this -> doImage ( ) ; }
Generates a new challenge and serves a captcha image.

Appropriate headers will be sent to the browser unless the *send_headers* option is false.

@param string $background_image The absolute or relative path to the background image to use as the background of the captcha image.

$img = new Securimage();
$img->code_length = 6;
$img->num_lines   = 5;
$img->noise_level = 5;

$img->show(); // sends the image and appropriate headers to browser
exit;
Generates a new challenge and serves a captcha image .