Add a little JavaScript, and an image can be refreshed automatically without reloading the page. I use this simple script for my webcam thumbnail (uploaded every 15 seconds) to keep it refreshed on my webpage. You could replace the <img src="...jpg" .. /> with the url for the weather graphic PHP script and it would work just the same.
<p>Get a <a href="sticker.php">weather graphic.</a></p>
<a href="netcam.php"><img src="netcam-thumb.jpg" id="myPull" alt="Netcam facing North-East" width="120" height="90" /></a>
<p>See <a href="netcam.php">live netcam</a>.</p>
<noscript><p style="color:#FF0000"><b>Note:</b> enable JavaScript to see updated image and live weather updates.</p></noscript>
<script type="text/javascript"><!--
//<![CDATA[
function reloadImage() {
var now = new Date();
if (document.images) {
document.images.myPull.src = 'netcam-thumb.jpg?' + now.getTime();
}
setTimeout('reloadImage()',15000);
}
setTimeout('reloadImage()',15000);
//]]>
-->
</script>
The JavaScript appends a '?timestamp' to the URL to make sure the browser doesn't cache the image.
Hope this helps...
Best regards,
Ken