rpedrab22 de Junio del 2004
PreguntaEn PHP, un gráfico .png, que se actualiza desde una base de datos MySQL, no se modifica la imagen cuando pido nuevos datos, si no pulso las teclas Control + F5.
La programación, esquemáticamente, es la siguiente:
<html>
<head> <title>... </title> </head>
<body bgcolor="#9999CC">
<?php
...
$fp = fopen("pic.png","wr+");
$img = ImageCreate(700,450);
...
ImagePNG($img,"pic.png");
ImageDestroy($img);
?>
<img src="pic.png" align="right" hspace="5" vspace="0" border="1" />
</body>
</html>
La programación, esquemáticamente, es la siguiente:
<html>
<head> <title>... </title> </head>
<body bgcolor="#9999CC">
<?php
...
$fp = fopen("pic.png","wr+");
$img = ImageCreate(700,450);
...
ImagePNG($img,"pic.png");
ImageDestroy($img);
?>
<img src="pic.png" align="right" hspace="5" vspace="0" border="1" />
</body>
</html>
