Вот уже второй день борюсь с Text_CAPTURE.
Вот скрипт:
CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?php
- require_once('text/captcha.php');
- $phrase = null;
- $phrase = $session->phrase;
- $captcha = Text_CAPTCHA::factory('Image');
- $opts = array('font_size' => 20,
- 'font_path' => 'C:/www/phpweb20/data',
- 'font_file' => 'VeraBd.ttf');
- $captcha->init(120, 60, $phrase, $opts);
- //header('Content-type: image/png');
- echo $captcha->getCAPTCHAAsPng();
- ?>