Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/02/2014, 10:27
xinxan22
 
Fecha de Ingreso: septiembre-2005
Mensajes: 522
Antigüedad: 18 años, 7 meses
Puntos: 0
Respuesta: Acentos y carácteres especialas en createImage

Hola,

el código completo del archivo crear_imagen.php es:


Código PHP:
<?php

header
("Content-type: image/gif");

$img=imagecreatefromgif("plantilla.gif");

//$texto = utf8_encode($_GET['texto']);

$texto utf8_encode("María"); 

$negro=imagecolorallocate($img,0,0,0); 

imagestring($img,3,0,0,$texto ,$negro);  



imagegif($img);

imagedestroy($img);

?>
Saludos