Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/05/2011, 19:16
Avatar de danielugalde
danielugalde
 
Fecha de Ingreso: marzo-2011
Ubicación: mexico
Mensajes: 45
Antigüedad: 13 años, 1 mes
Puntos: 3
Pregunta generacion de imagen Gd caracteres raros

Hola este es mi codigo y no entiendo donde esta el error al probarlo en el navegador me salen puros caracteres raros me ayudan xfa
Código PHP:
<?php
header 
("Content-type image/png");
$archivo = ("bautizo/marco/normal/I012.png");
$seleccion_bautizo imagecreatefrompng("$archivo");

/*Variables de arma_bautizo.php-envia.js*/
$nombre $HTTP_GET_VARS['nom'];
$f_nac $HTTP_GET_VARS['fn'];
$f_eve $HTTP_GET_VARS['fe'];
$parroquia $HTTP_GET_VARS['pq'];
$hora $HTTP_GET_VARS['hr'];
$direccion $HTTP_GET_VARS['dir'];
$padres $HTTP_GET_VARS['pd'];
$padrinos$HTTP_GET_VARS['pds'];
/*Variables de arma_bautizo.php-enivavalos.js*/

/*Colores*/
$azul imagecolorallocate($seleccion_bautizo33115250);
$rosa imagecolorallocate($seleccion_bautizo240106231);
/*Colores*/

/*Fuentes*/
putenv('GDFONTPATH='.realpath('.'));
$fuente_prueba='../../css/ttf/baarmb.ttf';
/*Fuentes*/

/*Texto*/
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $nombre);
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $f_nac);
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $f_eve);
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $parroquia);
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $hora);
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $direccion);
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $padres);
imagettftext ($seleccion_bautizo20 35 ,55 $azul $fuente_prueba $padrinos);
/*Texto*/

imagepng($seleccion_bautizo'img/'.$nom.'_'.$f_nac.'_'.$f_eve.'.png'0); 
imagepng($seleccion_bautizo);
imagedestroy($seleccion_bautizo);
?>