Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/11/2012, 02:54
KhanS
 
Fecha de Ingreso: noviembre-2012
Ubicación: Spain
Mensajes: 28
Antigüedad: 11 años, 5 meses
Puntos: 0
Respuesta: Libreria GD en el Servidor

Linux tendra que ver seguro, pero... he borrado cada espacio/tabulacion del codigo, obteniendo esto...
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Plano 1</title>
</head>
<body>
<?php
include('connect.php');
$rs mysql_query("SELECT max(id_comp) as id_maximo FROM compartimentos1");
$fila=mysql_fetch_assoc($rs);
$id $fila['id_maximo'];
$cantidad $id;
$imagen imagecreatefromjpeg("planos/plano1.jpeg");
$i 1;
while(
$i <= $cantidad){
$total mysql_query("SELECT * FROM compartimentos1 WHERE id_comp='".$i."'") or die(mysql_error());
if(
mysql_num_rows($total)){
$row mysql_fetch_array($total); 
$coordenadas $row["coord_comp"];
$action $row["action_comp"];
$valores explode(","$coordenadas);
$j sizeof($valores);
$tamano $j/2;
$rojo imagecolorallocatealpha($imagen2550063);
$azul imagecolorallocatealpha($imagen07225563);
$morado imagecolorallocatealpha($imagen198025563);
if(
$action == 'Inundacion'){
$color $azul;
}
if(
$action == 'Fuego'){
$color $rojo;
}
if(
$action == 'IGP'){
$color $morado;
}
imagefilledpolygon($imagen$valores$tamano$color);
}
$i++;
}
if(
headers_sent()){
die(
'Headers have been send somewhere within my script');
}
ob_clean();
header("Content-type: image/jpeg");
imagejpeg($imagen);
imagedestroy($imagen);
?>
</body>
</html>
Y estoy en las mismas... se envia el 'Headers have been send somewhere within my script', pero la imagen no sale ni a tiros...

Y @pateketrueke, no sale ningun mensaje de error, simplemente la imagen no se imprime...

Porfavor ayudenme :S