Cita:
¿que puede estar pasando?GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Código PHP:
$codigo=$_GET['pass'];
$tipografias = array("arial","comic","times","tahoma");
$fuentes_source = "C:\\WIN2003\\FONTS\\";
$espacio = 0;
$tamano_fuente = 15;
$profundidad_codigo = 10;
$x=$profundidad_codigo*$tamano_fuente;
$y=$tamano_fuente;
$im = imagecreate ($x, $y);
$color_fondo = imagecolorallocate ($im, 162, 170, 206); // Violetica comicón
$color_texto = imagecolorallocate ($im, 0, 0, 0); // Negro
for ($caracter=0; $caracter<=$profundidad_codigo; $caracter++){
$indice_aleatorio=array_rand($tipografias);
$tipografia=$fuentes_source.$tipografias[$indice_aleatorio].".ttf";
ImageTTFText ($im, rand(10,$tamano_fuente), 0, $espacio, $tamano_fuente, $color_texto, $tipografia , $codigo{$caracter});
$espacio +=$tamano_fuente;
}
header("Content-type: image/png");
imagepng ($im);
imagedestroy ($im);