Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/01/2011, 12:08
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Problemas con code php

Código PHP:
Ver original
  1. <?php
  2.  
  3. $image = imagecreate(200,20);
  4. $background = imagecolorallocate($image,0,0,0);
  5. $foreground = imagecolorallocate($image,255,255,255);
  6. header("Content-type: image/jpeg");
  7. imagejpeg($image);
  8.  
  9. ?>
Código HTML:
Ver original
  1. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  2. <head><title>Imagen</title>
  3.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. </head>
  5.     <body>
  6.         <p>¿Salio?</p>
  7.         <img src="crear-imagen.php" />
  8.     </body>
  9. </html>

Asi lo tengo y muestra un recuadro de 200x20 de color negro.