Forcing Page Refresh AFTER creating png image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tim wehr
Forum Newbie
Posts: 4
Joined: Sun May 19, 2002 5:54 pm

Forcing Page Refresh AFTER creating png image

Post by tim wehr »

I have a page that creates a chart (.png) from data in a database. The .png is written to disk succesfully. Futher down in the page, the image is read in and displayed via normal html img tag.

If I add a new datapoint and link to the page, it deletes the old graphic (that's good), it creates a new graphic (that's what I want), and writes it to disk (also desired), but displays the cached graphic. The only way I can get it to update is to refresh the page.

How can I force the page to use the newly-created graphic? (Alterntatively, How can I force a page refresh - an option I would rather avoid.)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply