Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/11/2009, 22:59
nostromos
 
Fecha de Ingreso: agosto-2009
Mensajes: 23
Antigüedad: 14 años, 8 meses
Puntos: 2
Problemas con GD

Hola a todos;

Estoy empesando con GD, pero tengo estos avisos de error:

Código PHP:
WarningCannot modify header information headers already sent by (output started at c:desarrollowww....phpind.php:86in c:desarrollowww...phpcntcut.php on line 100

Fatal error
Call to undefined function imagejpg() in c:desarrollowww...phpcntcut.php on line 101 
Los datos del Servidor Virtual es el siguiente:

The AppServ Open Project - 2.5.2 for Windows
phpMyAdmin Database Manager Version 2.6.0-pl2
PHP Information Version 5.0.2


En el detalle del php 5:

GD Support____________enabled
GD Version ____________bundled (2.0.28 compatible)
FreeType Support_______enabled
FreeType Linkage_______with freetype
FreeType Version_______2.1.9
GIF Read Support_______enabled
GIF Create Support______enabled
JPG Support____________enabled
PNG Support___________enabled
WBMP Support_________enabled
XBM Support___________enabled

En el php.ini, tengo lo siguiente:

;Windows Extensions

extension=php_gd2.dll

El codigo es el siguiente:

Código PHP:
<div style="border:solid 1px black;width:60px;">
          Prueba3
<?
$imagen 
imagecreatetruecolor(300,200)
$blanco imagecolorallocate($imagen255,255,255); //Creamos y rellenamos de blanco
$negro imagecolorallocate($imagen000);
$rojo imagecolorallocate($imagen25500);
$amarillo imagecolorallocate($imagen2552550);
$azul imagecolorallocate($imagen00255);
$cian imagecolorallocate($imagen0255255);
imagestring($imagen366"Holaaaa"$azul);
//
header("Content-type: image/png");
imagepng($imagen);
imagedestroy($imagen);
?>
</div>
A todo esto, el codigo esta metido en una pagina php con codigo html.

Espero que me puedan ayudar.