hola intento crear un captcha pero ma da error pongo codigo por si me podeis ayudar?
Código PHP:
Ver original<?php
$captchaTextSize = 7;
do {
}
while( strlen( $md5Hash ) < $captchaTextSize ); $key = substr( $md5Hash, 0, $captchaTextSize ); $_SESSION['key'] = md5( $key ); $linesToDraw = 10;
for( $i = 0; $i < $linesToDraw; $i++ ) {
$xStart = mt_rand( 0, $imageInfo[ 0 ] ); $xEnd = mt_rand( 0, $imageInfo[ 0 ] ); imageline( $captchaImage, $xStart, 0, $xEnd, $imageInfo[1], $lineColor ); }
imagettftext( $captchaImage, 20, 0, 35, 35, $textColor, "fuente/VeraBd.ttf", $key ); header ( "Content-type: image/png" ); ?>