Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/03/2008, 15:49
Studjjrv
 
Fecha de Ingreso: febrero-2008
Mensajes: 27
Antigüedad: 16 años, 3 meses
Puntos: 0
Re: de .php a .png

encontre ese archivo pero como hago que este codigo

<?php

header("Content-type: image/png");
$img = imagecreatefrompng("test.png");

imagefilter($img, IMG_FILTER_GRAYSCALE);

imagefilter($img, IMG_FILTER_BRIGHTNESS, 10);

imagepng($img);

imagedestroy($img);

?>

me combierta este codigo

<!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>Untitled Document</title>
</head>
<body>
<?php

require('/usr/local/apache2/htdocs/omakon_desarrollo/PDF/fpdf.php');
require ('procesos_omakon.php');
//include 'procesos_omakon.php';
$numero_registro=$HTTP_GET_VARS['numero_registro'];

$sql= "SELECT numeste , numnorte , strpto FROM registros_vertices WHERE strnrosolicitud ='".$numero_registro."'order by gid;";

$result1 = @pg_query($dbconnPG,$sql);
$num_row= @pg_num_rows($result1);

echo "<html> <TABLE bgcolor=red Border=10 CellPadding=5><TR>";
echo "<th>Vertice</th><th>Coordenadas X</th><th>Coordenadas Y</th></TR>";

if ($num_row > 0){
$i = 1;
while ($row=pg_fetch_assoc($result1)){
$vertT[$i]=$row['strpto'];
$x_coordenada[$i]=$row['numeste'];
$y_coordenada[$i]=$row['numnorte'];

echo"<tr>";
echo "<td align=center><b>".$vertT[$i]."</b></td> <td align=center><b>".$x_coordenada[$i]."</b></td><td align=center><b>".$y_coordenada[$i]."</b></td>";
echo"</tr>";

}
echo "</table>";
}

@pg_close($dbconnPG);

?>
</body>
</html>


en una IMAGEN (el resultado).