Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/06/2009, 14:14
danieltuch
 
Fecha de Ingreso: julio-2008
Mensajes: 33
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Crear imagen con image*

Perdon, fue un error de tipeo a la hora de escribir en el foro.
en realidad el archivo se llama "imagenfondo.php".
por lo cual...

archivo imagenfondo.php
<?
include("funciones.php");
session_start();
$_SESSION['texto_temp'] = genera_texto(6);
$captcha = imagecreatefromgif("fondo.gif");
$colText = imagecolorallocate($captcha, 0, 0, 0);
imagestring($captcha, 4, 16, 7, $_SESSION['texto_temp'], $colText);
header ("Content-type: image/jpeg");
imagejpeg($captcha); //ver comentario abajo
?>

en el archivo que lo llama...

<img src="imagenfondo.php" width="100" height="30">


Sigo con el problema.