Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/01/2011, 10:38
IDRID
 
Fecha de Ingreso: mayo-2010
Mensajes: 118
Antigüedad: 14 años
Puntos: 1
Pregunta Creacion de imagen Dinamica

generate.php
Código PHP:
<?php
header
("Content-type: image/png"); 
$result rand(12);
$foto1 file_get_contents('unafoto.png'); 
$foto2 file_get_contents('otrafoto.png'); 
if (
$result "1") {
echo 
$foto1;
}
else{
echo 
$foto2;
}
?>
Photo.html
Código HTML:
<img src="generate.php"/> 
Me gustaria saber como crear una imagen dinamica.Graciaas