24, 'font_path' => '/usr/share/fonts/default/TrueType/', 'font_file' => 'helb____.ttf' ); $c = Text_CAPTCHA::factory('Image'); // Generate a new Text_CAPTCHA object, Image driver $c = Text_CAPTCHA::factory('Image'); $retval = $c->init(200, 80, null, $options); if (PEAR::isError($retval)) { echo 'Error generating CAPTCHA!'; echo '
';
    print_r($retval);
    echo '
'; exit; } // Get CAPTCHA secret passphrase $_SESSION['phrase'] = $c->getPhrase(); // Get CAPTCHA image (as PNG) $png = $c->getCAPTCHAAsPNG(); if (PEAR::isError($png)) { echo 'Error generating CAPTCHA image!'; print_r($png); exit; } //file_put_contents(md5(session_id()) . '.png', $png); //print( "captcha! " ); if (function_exists("imagepng")) { header("Content-type: image/png"); echo $png; } ?>