Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/04/2008, 08:42
paulkees
 
Fecha de Ingreso: octubre-2004
Mensajes: 768
Antigüedad: 21 años, 11 meses
Puntos: 3
Re: Emails anti-SPAM

Hola jerkan...

Puse en el <body> el codigo:

Código PHP:
$_GET['texto'] = "[email protected]"; ## Email que queremos proteger
$length = strlen($_GET['texto']) * 6;
header("Content-type: image/png");
$im = imagecreate($length, 14);
imagecolorallocatealpha($im, 255, 0, 0, 127);
$color = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 2, 0, 0, $_GET['texto'], $color);
imagepng($im);
imagedestroy($im); 
Lo llamé en la forma como dices, sacándole:

Código PHP:
$_GET['texto'] = "[email protected]"; 
y la pagina me queda en blanco!

Saludos.-