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

Hola a todos;

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

Código PHP:
Warning: Cannot modify header information - headers already sent by (output started at c:desarrollowww....phpind.php:86) in 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($imagen, 255,255,255); //Creamos y rellenamos de blanco
$negro = imagecolorallocate($imagen, 0, 0, 0);
$rojo = imagecolorallocate($imagen, 255, 0, 0);
$amarillo = imagecolorallocate($imagen, 255, 255, 0);
$azul = imagecolorallocate($imagen, 0, 0, 255);
$cian = imagecolorallocate($imagen, 0, 255, 255);
imagestring($imagen, 3, 6, 6, "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.