probando un codigo para crear una imagen para captcha funciona correctamente en modo local osea en mi pc usando windows per si la subo a un servidor linux ya no me funciona me da el siguiente error.
cannot be displayed because it contains errors
este es el codigo:
Código PHP:
Ver original$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 );
No se si esque tengo que activar alguna extension php o modificar algo en php.ini, si alguien me puede ayudar gracias de antemano.
Saludos.