![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/06/2009, 14:14
|
| | Fecha de Ingreso: julio-2008
Mensajes: 33
Antigüedad: 16 años, 7 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. |